help

const fetch = require('node-fetch'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\georg\Desktop\brickbronze\looker\node_modules\node-fetch\src\index.js from C:\Users\georg\Desktop\brickbronze\looker\main.js not supported. Instead change the require of index.js in C:\Users\georg\Desktop\brickbronze\looker\main.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Users\georg\Desktop\brickbronze\looker\main.js:2:15) { code: 'ERR_REQUIRE_ESM' }
2 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
King
King2mo ago
ping me if u have a solution it is ok maybe it isnt but idk why this happening uhh 13 its not a djs issue my bad i see i have to upgrade nodefetch