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

Bug: Can't run in node20 #91

Open
HoikanChan opened this issue Jan 3, 2025 · 1 comment
Open

Bug: Can't run in node20 #91

HoikanChan opened this issue Jan 3, 2025 · 1 comment

Comments

@HoikanChan
Copy link

Got error when npm run dev.

Environment:
NodeJS: v20.10.0
OS: windows 10

Error msg:

Error [ERR_REQUIRE_ESM]: require() of ES Module D:\workspace\inula-API2.1\dsl-engine\node_modules\nextra\dist\server\index.js from D:\workspace\inula-API2.1\dsl-engine\next.config.js not supported.
Instead change the require of index.js in D:\workspace\inula-API2.1\dsl-engine\next.config.js to a dynamic import() which is available in all CommonJS modules.
    at mod.require (D:\workspace\inula-API2.1\dsl-engine\node_modules\next\dist\server\require-hook.js:64:28)
    at Object.<anonymous> (D:\workspace\inula-API2.1\dsl-engine\next.config.js:1:20) {
  code: 'ERR_REQUIRE_ESM'
}
@guguji5
Copy link

guguji5 commented Jan 15, 2025

+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