.use('script-ext-html-webpack-plugin', [{ // `runtime` must same as runtimeChunk name. default is `runtime` inline: /runtime\..*\.js$/ }]) .end() config .optimization.splitChunks({ chunks: 'all', cacheGroups: { libs: { name: 'chunk-libs', test: /[\\/]node_modules[\\/...
dev script-ext-html-webpack-plugin@"2.0.1" from the root project 原因:组件库所使用的依赖库版本和本地安装版本不一致才导致的这个问题,就是依赖冲突。 解决: 在命令后面加上:--legacy-peer-deps,即下面这条指令: npm install --legacy-peer-deps --legacy-peer-deps的作用是绕过peerDependency自动...
npm ERR! dev script-ext-html-webpack-plugin@"2.1.5" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. ...
node_modules/webpack npm ERR! peer webpack@”^4.0.0 || ^5.0.0″ from html-webpack-plugin@4.5.2 npm ERR! node_modules/html-webpack-plugin npm ERR! peer html-webpack-plugin@”^3.0.0 || ^4.0.0″ from script-ext-html-webpack-plugin@2.1.5 npm ERR! node_modules/script-ext-html-w...
npm WARN script-ext-html-webpack-plugin@2.0.1requires a peer of html-webpack-plugin@^3.0.0but noneisinstalled.You must install peer dependencies yourself.npm WARN vue-g2@1.2.4requires a peer of@antv/data-set@^0.9.6but noneisinstalled.You must install peer dependencies yourself.npm WARN vue...
如果使用了script-ext-html-webpack-plugin,要注意与html-webpack-plugin的版本兼容 如果出现的异常如下: (node:24424) UnhandledPromiseRejectionWarning: Error: Cyclic dependency (node:24424) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an asyn...
dev script-ext-html-webpack-plugin@"2.1.5" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. ...
Found: html-webpack-plugin@4.0.0-alphanpm ERR! node_modules/html-webpack-pluginnpm ERR! dev html-webpack-plugin@"4.0.0-alpha" from the root projectnpm ERR!npm ERR! Could not resolve dependency:npm ERR! peer html-webpack-plugin@"^3.0.0" from script-ext-html-webpack-plugin@2.0.1npm...
dev script-ext-html-webpack-plugin@"2.1.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" from script-ext-html-webpack-plugin@2.1.5 npm ERR! node_modules/script-ext-html-webpack-plugin np...
npm ERR! dev script-ext-html-webpack-plugin@"2.1.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" from script-ext-html-webpack-plugin@2.1.5 ...