Skip to content

test(webpack): validate that bv-addons can be used without error#606

Closed
tbouffard wants to merge 3 commits into
masterfrom
test/use_bv-addons_in_webpack_project
Closed

test(webpack): validate that bv-addons can be used without error#606
tbouffard wants to merge 3 commits into
masterfrom
test/use_bv-addons_in_webpack_project

Conversation

@tbouffard

Copy link
Copy Markdown
Member

Reproduce the problem that will be fixed by process-analytics/bpmn-visualization-addons#301

Notes

Current build error

WARNING in ./src/index.js 8:36-60
export 'ShapeUtil' (imported as 'ShapeUtil') was not found in '@process-analytics/bv-experimental-add-ons' (module has no exports)

ERROR in ./node_modules/@process-analytics/bv-experimental-add-ons/dist/index.js 16:0-32
Module not found: Error: Can't resolve './bpmn-elements' in '/development/process-analytics/repo/bpmn-visualization-examples/projects/javascript-vanilla-with-webpack/node_modules/@process-analytics/bv-experimental-add-ons/dist'
Did you mean 'bpmn-elements.js'?
BREAKING CHANGE: The request './bpmn-elements' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/index.js 2:0-71 8:36-60

ERROR in ./node_modules/@process-analytics/bv-experimental-add-ons/dist/index.js 17:0-24
Module not found: Error: Can't resolve './paths' in '/development/process-analytics/repo/bpmn-visualization-examples/projects/javascript-vanilla-with-webpack/node_modules/@process-analytics/bv-experimental-add-ons/dist'
Did you mean 'paths.js'?
BREAKING CHANGE: The request './paths' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/index.js 2:0-71 8:36-60

ERROR in ./node_modules/@process-analytics/bv-experimental-add-ons/dist/index.js 18:0-26
Module not found: Error: Can't resolve './plugins' in '/development/process-analytics/repo/bpmn-visualization-examples/projects/javascript-vanilla-with-webpack/node_modules/@process-analytics/bv-experimental-add-ons/dist'
Did you mean 'index.js'?
BREAKING CHANGE: The request './plugins' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/index.js 2:0-71 8:36-60

ERROR in ./node_modules/@process-analytics/bv-experimental-add-ons/dist/index.js 19:0-34
Module not found: Error: Can't resolve './plugins-support' in '/development/process-analytics/repo/bpmn-visualization-examples/projects/javascript-vanilla-with-webpack/node_modules/@process-analytics/bv-experimental-add-ons/dist'
Did you mean 'plugins-support.js'?
BREAKING CHANGE: The request './plugins-support' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./src/index.js 2:0-71 8:36-60

4 errors have detailed information that is not shown.

@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Sep 23, 2024
@tbouffard

Copy link
Copy Markdown
Member Author

The build of the webpack project pass when using version 0.7.1.
This validates this new version, so closing this PR.

@tbouffard tbouffard closed this Sep 23, 2024
@tbouffard tbouffard deleted the test/use_bv-addons_in_webpack_project branch September 23, 2024 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant