“webpack”: “^ 5.72.0” error:
/Users/guojianbo/Documents/xxx/node_modules/webpack/lib/ChunkGroup.js:119
throw new Error(
^
Error: ChunkGroup.addOptions: No option merge strategy for name
at Entrypoint.addOptions (/Users/guojianbo/Documents/xxx/node_modules/webpack/lib/ChunkGroup.js:119:12)
Solution:
webpack.config.js
before modification:
module.exports = {
entry: {
'abc-def': "./src/js/abc-def.js",
'qwe-rty': "./src/js/qwe-rty.js",
}
}
After modification
module.exports = {
entry: {
'my-abc-def': "./src/js/abc-def.js",
'my-qwe-rty': "./src/js/qwe-rty.js",
}
}
That is, add a prefix to the entry name to prevent conflicts with the internal chunk names of webpack packages
Read More:
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- Vue Use ‘npm run dev’ Error: Error: Unknown option ‘–inline‘ [How to Solve]
- [Solved] Uncaught Error: Provide the “history“ option when calling “createRouter()“
- [Solved] Error: Transform failed with 1 error: error: Invalid option in transform() call: “jsx“
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] electron Package and Startup Error: Error: ENOENT: no such file or directory, open ‘xxx/manifest.json‘‘
- [Solved] Vue Error: Parsing error: No Babel config file detected for /Users/Usename/xxx…
- [Solved] Parsing error: No Babel config file detected for XXX
- [Solved] Vue Error: Parsing error:No Babel config file detected for xxx
- vue3 import Error: has no default export [How to Solve]
- Vue refreshes the current page (no flash screen will appear)
- [Solved] Vue Error: Parsing error: No Babel config file detected for
- Error notarget No matching version found for [email protected]. [How to Solve]
- [Solved] fatal error: cuda_runtime.h: No such file or directory
- Docker Quickstart Terminal Error: No default Boot2Docker ISO found locally
- [Solved] Uncaught (in promise) DOMException: Failed to load because no supported source was found.