You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module seperti fetch belum tersedia di Nodejs versi lawas. Kondisikan untuk membuat polyfill untuk memperluas dukungan versi Nodejs. Lihat ini sebagai referensi.
The text was updated successfully, but these errors were encountered:
Pada library ini hanya menggunakan fetch tidak banyak module modern lain yang digunakan.
Versi NodeJS (v14.x.x LTS) yang belum mendukung fetch sudah EOL.
Untuk NodeJS versi 16.15.0 atau setelahnya sudah mendukungfetch namun dengan flag --experimental-fetch.
node --experimental-fetch app.js
Perlu dicatat bahwa flag --experimental-fetch menunjukan bawah module fetch tersebut masih dalam tahap pengembangan awal atau masih dalam uji coba. Module fetch pada NodeJS sudah stable pada NodeJS versi 18 LTS.
Jika tidak ingin menggunakan flag --experimental-fetch atau versi NodeJS yang digunakan belum mendukung, alternatifnya adalah menginstall package yang terdapat module fetch pihak ketiga seperti node-fetch atau undici. Kami lebih menyarankan menggunakan undici karena dikembangkan langsung oleh NodeJS.
Setelah menginstall package, define fetch sebagai global module seperti ini:
Module seperti
fetch
belum tersedia di Nodejs versi lawas. Kondisikan untuk membuat polyfill untuk memperluas dukungan versi Nodejs. Lihat ini sebagai referensi.The text was updated successfully, but these errors were encountered: