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

ERR_REQUIRE_ESM #372

Open
EricPlays61 opened this issue Sep 26, 2024 · 0 comments
Open

ERR_REQUIRE_ESM #372

EricPlays61 opened this issue Sep 26, 2024 · 0 comments

Comments

@EricPlays61
Copy link

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\rust\node_modules\translate\index.min.js from C:\rust\src\structures\RustPlus.js not supported.
Instead change the require of index.min.js in C:\rust\src\structures\RustPlus.js to a dynamic import() which is available in all CommonJS modules.
at require.extensions. [as .js] (C:\rust\node_modules\ts-node\dist\index.js:851:20)
at Object. (C:\rust\src\structures\RustPlus.js:24:19)
at m._compile (C:\rust\node_modules\ts-node\dist\index.js:857:29)
at require.extensions. [as .js] (C:\rust\node_modules\ts-node\dist\index.js:859:16)
at Object. (C:\rust\src\structures\DiscordBot.js:35:18)
at m._compile (C:\rust\node_modules\ts-node\dist\index.js:857:29)
at require.extensions. [as .js] (C:\rust\node_modules\ts-node\dist\index.js:859:16)
at Object. (C:\rust\index.ts:24:20)
at m._compile (C:\rust\node_modules\ts-node\dist\index.js:857:29)
at require.extensions. [as .ts] (C:\rust\node_modules\ts-node\dist\index.js:859:16)
at phase4 (C:\rust\node_modules\ts-node\dist\bin.js:466:20)
at bootstrap (C:\rust\node_modules\ts-node\dist\bin.js:54:12)
at main (C:\rust\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\rust\node_modules\ts-node\dist\bin.js:579:5) {
code: 'ERR_REQUIRE_ESM'
}

I don't know what to do or what i did it worked one day and stopped the next.

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