冲突:多个资产发出相同的文件名 polyfills-es5.86802ad41d990b0b582b.js

如何解决冲突:多个资产发出相同的文件名 polyfills-es5.86802ad41d990b0b582b.js

我在 prod 模式下构建 angular 11 应用程序时遇到此错误。

块 polyfills-es5 中的 RROR [初始] polyfills-es5.86802ad41d990b0b582b.js 冲突:多个块将资产发送到相同的文件名 polyfills-es5.86802ad41d990b0b582b.js(块 3 和 3)

错误:冲突:多个块将资产发送到相同的文件名 polyfills-es5.86802ad41d990b0b582b.js(块 3 和 3)
在 Compilation.createChunkAssets (C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:2159:14)
在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1397:10 在 AsyncSeriesHook.eval [as callAsync] (在创建时评估 (C:\Users\Desktop\angular-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10),:7:1) 在 AsyncSeriesHook.lazyCompileHook (C:\Users\Desktop\angular-ui\node_modules\tapable\lib\Hook.js:154:20) 在 Compilation.seal (C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1342:27) 在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compiler.js:675:18 在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1261:4 在 AsyncSeriesHook.eval [as callAsync] (在创建时评估(C:\Users\Desktop\angular-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10),:40:1) 在 AsyncSeriesHook.lazyCompileHook (C:\Users\Desktop\angular-ui\node_modules\tapable\lib\Hook.js:154:20) 在 Compilation.finish (C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1253:28) 在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compiler.js:672:17 at _done (eval at create (C:\Users\Desktop\angular-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10),:7:1) at eval (eval at create (C:\Users\Desktop\angular-ui\node_modules\tapable\lib\HookCodeFactory.js:33:10),:70:22) 在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1185:12 在 C:\Users\Desktop\angular-ui\node_modules@angular-builders\custom-webpack\node_modules\webpack\lib\Compilation.js:1097:9 在 processTicksAndRejections (internal/process/task_queues.js:79:11) 来自 Terser 的 polyfills-es5.86802ad41d990b0b582b.js 中的错误 意外令牌:punc (.) [polyfills-es5.86802ad41d990b0b582b.js:1,0] 在 ee (C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:19391) 在 c (C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:27870) 在 l (C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:27961) 在 f (C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:28014) 在 C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:30308 在 C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:28602 在 C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:50459 在 ce (C:\Users\Desktop\angular-ui\node_modules\terser\dist\bundle.min.js:1:50596) 在缩小 (C:\Users\Desktop\angular-ui\node_modules\terser-webpack-plugin\dist\minify.js:166:7)
npm 错误!代码生命周期 npm 错误!错误号 1 npm 错误! angular-ui@4.2.9 构建:cross-env NODE_ENV="production" && node --max-old-space-size=2048 node_modules/@angular/cli/bin/ng build --prod npm 错误!退出状态 1 npm 错误! npm 错误! angular-ui@4.2.9 构建脚本失败。 npm 错误!这可能不是 npm 的问题。上面可能有额外的日志输出。

npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! C:\Users\AppData\Roaming\npm-cache_logs\2020-12-22T09_19_53_961Z-debug.log

这是我的 package.json

{
   "name": "angular-ui","version": "4.2.9","description": "Angular UI","husky": {
       "hooks": {
           "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
       }
   },"scripts": {
       "start": "ng serve","test": "jest --verbose","test:watch": "jest --watch --coverage=false --verbose","prepare": "in-publish && npm run build || echo \"Not in publish - skipping build\"","lint:markdown": "markdownlint \"./**/*.md\" --ignore \"node_modules/**\"","lint": "tslint -p \"src/tsconfig.json\" \"./**/*.ts\" -e \"node_modules/**\" \"dist/**\" -t verbose","lint:scss": "stylelint \"src/**/*.scss\"","build": "cross-env NODE_ENV=\"production\" && node --max-old-space-size=2048 node_modules/@angular/cli/bin/ng build --prod","release": "standard-version"
   },"author": "","license": "ISC","dependencies": {
       "@angular/animations": "11.0.0","@angular/cdk": "11.0.0","@angular/common": "11.0.0","@angular/compiler": "10.2.3","@angular/core": "11.0.0","@angular/flex-layout": "9.0.0-beta.29","@angular/forms": "11.0.0","@angular/material": "11.0.1","@angular/platform-browser": "11.0.0","@angular/platform-browser-dynamic": "11.0.0","@angular/router": "11.0.0","@ngrx/effects": "9.0.0","@ngrx/store": "9.0.0","@uirouter/angular": "6.0.1","@uirouter/core": "6.0.4","@uirouter/rx": "0.6.5","apollo-angular": "1.8.0","apollo-angular-link-http": "1.9.0","apollo-cache-inmemory": "1.6.5","apollo-client": "2.6.8","apollo-link": "1.2.13","blockly": "1.0.0","brace": "0.11.1","core-js": "3.6.4","country-language": "0.1.7","dom-autoscroller": "2.3.4","graphql": "15.4.0","graphql-tag": "2.10.3","html-webpack-plugin": "^4.5.0","http-status-codes": "1.4.0","immer": "5.3.6","json-formatter-js": "2.3.4","json-schema-ref-parser": "6.0.2","jsplumb": "2.15.0","jszip": "3.5.0","konva": "4.2.0","lodash": "4.17.15","mdi": "1.6.50","moment": "2.24.0","ngx-image-cropper": "2.1.0","ngx-socket-io": "3.0.1","ngx-virtual-scroller": "4.0.3","panzoom": "9.2.1","papaparse": "5.1.1","path": "^0.12.7","reflect-metadata": "0.1.13","rxjs": "6.5.4","rxjs-tslint-rules": "4.29.2","tslib": "^1.11.1","url-join": "4.0.1","uuid": "3.3.3","zone.js": "~0.10.3"
   },"devDependencies": {
       "@angular-builders/custom-webpack": "9.0.0","@angular-builders/dev-server": "7.3.1","@angular-devkit/build-angular": "0.901.0","@angular/cli": "11.0.0","@angular/compiler-cli": "11.0.0","@commitlint/cli": "8.3.5","@commitlint/config-conventional": "8.3.4","@ngrx/store-devtools": "9.0.0","@types/core-js": "2.5.3","@types/graphql": "14.5.0","@types/jest": "25.1.4","@types/jsplumb": "2.5.7","@types/lodash": "4.14.149","@types/markdownlint": "0.13.0","@types/node": "^12.12.31","@types/papaparse": "5.0.3","@types/passport": "1.0.3","@types/passport-oauth2": "1.4.8","@types/source-map": "0.5.7","@types/stylelint": "9.10.1","@types/url-join": "0.8.2","@types/uuid": "3.4.6","@types/webpack": "4.41.8","@types/webpack-dev-server": "3.10.1","angular2-template-loader": "0.6.2","babel-polyfill": "6.26.0","cross-env": "7.0.2","cz-conventional-changelog": "3.1.0","exports-loader": "0.7.0","husky": "4.2.3","imports-loader": "0.8.0","in-publish": "2.0.1","jest": "25.1.0","jest-transform-graphql": "^2.1.0","markdownlint": "0.19.0","markdownlint-cli": "0.22.0","ng2-dragula": "2.1.1","ngx-toastr": "12.0.0","sneer": "1.0.1","standard-version": "7.1.0","stylelint": "13.2.1","ts-jest": "25.2.1","tslint": "6.1.0","typescript": "4.0.5","webpack": "4.44.2","webpack-dev-server": "3.10.3"
   },"browser": {
       "crypto": false
   },"config": {
       "commitizen": {
           "path": "./node_modules/cz-conventional-changelog"
       }
   }
}

我的 webpack.config.js 只在其模块中配置了规则。

我该如何解决这个问题?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-