-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there an module dependencies conflicts? #13
Comments
it's seems somewhere read hooks.module.js in error place, i cant figure it out? help! |
And, if i add this webpack config, I got another error in bpmnjs : |
@nikku can you help me? Is this because of the dependency "preact" ? |
Ensure you de-duplicate |
https://github.com/Ken-Scofield/bpmn-form-demo.git,my demo address, please carry me. |
Running with webpack5. Can't use "playground" and something else at the same time, OR, how to de-duplicate preact in webpack5? |
I have used |
finnally, i figure it out , cause
3 path are used to import |
@Ken-Scofield Beyond aliasing (which always works) |
Thank you very much, I've learned |
Describe the Bug
When remove this config belew in webpack configs, I got an error. (custom components demo)
error screenshot:
webpack config:
// new NormalModuleReplacementPlugin(
// /^(../preact|preact)(/[^/]+)?$/,
// function (resource) {
// const replMap = {
// 'preact/hooks': path.resolve('node_modules/preact/hooks/dist/hooks.module.js'),
// 'preact/jsx-runtime': path.resolve('node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js'),
// preact: path.resolve('node_modules/preact/dist/preact.module.js'),
// '../preact/hooks': path.resolve('node_modules/preact/hooks/dist/hooks.module.js'),
// '../preact/jsx-runtime': path.resolve('node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js'),
// '../preact': path.resolve('node_modules/preact/dist/preact.module.js')
// }
// const replacement = replMap[resource.request]
// console.log('resource-request', resource.request)
// if (!replacement) {
// return
// }
// resource.request = replacement
// }
// )
Can you help me, find it out this problems? @pinussilvestrus ,thanks
Environment
The text was updated successfully, but these errors were encountered: