Skip to content

Require ESM Module #202

@PantherX99

Description

@PantherX99

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\nodeAPI\node_modules@oozcitak\util\lib\index.js from C:\nodeAPI\node_modules\xmlbuilder2\lib\builder\XMLBuilderImpl.js not supported.
Instead change the require of index.js in C:\nodeAPI\node_modules\xmlbuilder2\lib\builder\XMLBuilderImpl.js to a dynamic import() which is available in all CommonJS modules.
at Object. (C:\nodeAPI\node_modules\xmlbuilder2\lib\builder\XMLBuilderImpl.js:5:16) {
code: 'ERR_REQUIRE_ESM'
}

Version:

  • node.js: 20.11.1
  • xmlbuilder2 4.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions