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

issue C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js:11 const { red, yellow, greenBright } = require("chalk"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\node_modules\chalk\source\index.js from C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js not supported. Instead change the require of index.js in C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js:11:38) { code: 'ERR_REQUIRE_ESM' } Press any key to continue . . . #30

Open
amraantje15 opened this issue Jul 30, 2022 · 0 comments

Comments

@amraantje15
Copy link

C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js:11
const { red, yellow, greenBright } = require("chalk");
^

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\node_modules\chalk\source\index.js from C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js not supported.
Instead change the require of index.js in C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js to a dynamic import() which is available in all CommonJS modules.
at Object. (C:\Users\31638\Downloads\Discord-Mass-DM-Tool-3revamp\script.js:11:38) {
code: 'ERR_REQUIRE_ESM'
}
Press any key to continue . . .

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

1 participant