The package.json
of camunda-bpmn-js
specifies "main": "lib/index.js"
, but the file index.js
does not exist in the lib
directory. This causes bundling issues when the package is used in a project, particularly when working with Angular and Module Federation.
I am currently working on an Angular project that leverages Module Federation, and the incorrect "main"
entry in the package.json is causing the build process to fail. Specifically, the bundler attempts to resolve the lib/index.js
file, which results in
error: Could not resolve “\node_modules\camunda-bpmn-js\lib\index.js”
Any solution?
Thanks in advance!