我一开始调试就得到了这个错误。
c:\proj\src\polyfills.ts依赖于“core-js/es6/符号”。CommonJS或AMD依赖项可以导致优化纾困。有关更多信息,请参见:https://angular.io/guide/build#configuring-commonjs-dependencies
根据上面的指导,添加
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": ["loadash"], // <-- add this key此外,附加src/polyfills.ts也不会有帮助。角版11。
发布于 2021-09-10 22:56:25
向allowedCommonJsDependencies中添加core-js
https://stackoverflow.com/questions/69136374
复制相似问题