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

Must use import to load ES Module #22

Open
rohank05 opened this issue Jul 18, 2020 · 1 comment
Open

Must use import to load ES Module #22

rohank05 opened this issue Jul 18, 2020 · 1 comment

Comments

@rohank05
Copy link

I get this error while using it
internal/modules/cjs/loader.js:984
throw new ERR_REQUIRE_ESM(filename);
^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\Users\user\Desktop--master\Mix Bot\node_modules\discord-webhook-node\src\index.mjs
�[90m at Module.load (internal/modules/cjs/loader.js:984:11)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:879:14)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:1026:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:72:18)�[39m
at Object. (C:\Users\user\Desktop--master\Mix Bot\start.js:4:21)
�[90m at Module._compile (internal/modules/cjs/loader.js:1138:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:986:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:879:14)�[39m
�[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)�[39m {
code: �[32m'ERR_REQUIRE_ESM'�[39m
}

@matthew1232
Copy link
Owner

Can you try updating to 1.1.8 and let me know if the problem persists?

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