Skip to content

Bug: Can't run in node20 #91

@HoikanChan

Description

@HoikanChan

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'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions