Skip to content

[build_webpack] doesn't work with esm #22547

@its-dibo

Description

@its-dibo

when adding build webpack to an esm Angular project (a project has type: module in package.json and module: ES2022 in tsconfig.json) got the following error

An unhandled exception occurred: Must use import to load ES Module: /home/projects/node-tyenbp/webpack.config.js
require() of ES modules is not supported.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions