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

Error [ERR_REQUIRE_ESM]: require() of ES Module #24

Open
deman2660 opened this issue Dec 23, 2021 · 2 comments
Open

Error [ERR_REQUIRE_ESM]: require() of ES Module #24

deman2660 opened this issue Dec 23, 2021 · 2 comments

Comments

@deman2660
Copy link

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\node_modules\chalk\source\index.js from C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js not supported. Instead change the require of index.js in C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js:11:38) { code: ←[32m'ERR_REQUIRE_ESM'←[39m }
I get this error when trying to run the script, any way to fix it?

@hahahahaxxx334
Copy link

get the same god damn thing... rip

@chethanyadav456
Copy link

Install lower version of chalk -
npm install chalk@^4.1.2

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

3 participants