Użyj modułów węzłów w następnej
// The same way you do it in Node.js
const fetch = require("node-fetch");
Undefined
// The same way you do it in Node.js
const fetch = require("node-fetch");