Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pls help me #10

Open
python-hmv opened this issue Oct 22, 2021 · 1 comment
Open

pls help me #10

python-hmv opened this issue Oct 22, 2021 · 1 comment

Comments

@python-hmv
Copy link

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/Discord-Bot-Dashboard-1/node_modules/node-fetch/src/index.js from /home/runner/Discord-Bot-Dashboard-1/bot/commands/info/anime.js not supported.
Instead change the require of index.js in /home/runner/Discord-Bot-Dashboard-1/bot/commands/info/anime.js to a dynamic import() which is available in all CommonJS modules.
at n (/home/runner/Discord-Bot-Dashboard-1/node_modules/jiti/dist/v8cache.js:2:2472)
at Object. (/home/runner/Discord-Bot-Dashboard-1/bot/commands/info/anime.js:2:15)
at Module.o._compile (/home/runner/Discord-Bot-Dashboard-1/node_modules/jiti/dist/v8cache.js:2:2778)
at n (/home/runner/Discord-Bot-Dashboard-1/node_modules/jiti/dist/v8cache.js:2:2472)
at /home/runner/Discord-Bot-Dashboard-1/bot/handlers/command.js:18:24
at Array.forEach ()
at module.exports (/home/runner/Discord-Bot-Dashboard-1/bot/handlers/command.js:10:62)
at /home/runner/Discord-Bot-Dashboard-1/bot/index.js:12:35
at Array.forEach ()
at Object. (/home/runner/Discord-Bot-Dashboard-1/bot/index.js:11:23)
at Module.o._compile (/home/runner/Discord-Bot-Dashboard-1/node_modules/jiti/dist/v8cache.js:2:2778)
at Object. (/home/runner/Discord-Bot-Dashboard-1/server.js:25:1) {
code: 'ERR_REQUIRE_ESM'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: NODE_ENV=production node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-22T13_14_24_720Z-debug.log
exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@python-hmv and others