简体   繁体   English

Angular 使用@angular-builders/custom-webpack 将 v13 迁移到 v14

[英]Angular migration v13 to v14 using @angular-builders/custom-webpack

We recently migrated Angular from version 13 to 14.我们最近将 Angular 从版本 13 迁移到版本 14。

My dev dependencies and global cli both are v14.0 and we are using我的开发依赖项和全局 cli 都是 v14.0,我们正在使用

" @angular-builders/custom-webpack " (latest version 13.1.0 ) npm package @angular-builders/custom-webpack ”(最新版本 13.1.0 )npm package

While building the project I am getting the following error.在构建项目时出现以下错误。

在此处输入图像描述

I don't find anything wrong with my cli version installed in dev dependencies and global cli.我没有发现我在开发依赖项和全局 cli 中安装的 cli 版本有任何问题。

在此处输入图像描述

NOTE: I am guessing @angular-builders/custom-webpack is causing the problem but not sure because according to their guidelines they are supported till Angular v13.注意:我猜@angular-builders/custom-webpack是导致问题的原因但不确定,因为根据他们的指导方针,他们支持到 Angular v13。 Maybe I need to wait for them to update the package.也许我需要等待他们更新 package。

https://www.npmjs.com/package/@angular-builders/custom-webpack https://www.npmjs.com/package/@angular-builders/custom-webpack

I will sum up the thread mentioned in @R.我将总结@R中提到的线程。 Richards' comment . 理查兹的评论

Author of @angular-builders is currently working on v14 support, PR link: @angular-builders作者目前正在致力于 v14 支持,PR 链接:

To temporarily fix the problem, you can delete this folder:要暂时解决问题,您可以删除此文件夹:

  • node_modules\ @angular-builders\custom-webpack\node_modules node_modules\ @angular-builders\custom-webpack\node_modules

If using yarn plug and play:如果使用纱线即插即用:

  • You can work it around with Yarn resolutions, but highly recommemded to wait for the official release of v14 compatible version.您可以使用 Yarn 解决方案解决它,但强烈建议等待 v14 兼容版本的正式发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将自定义环境参数传递给@angular-builders/custom-webpack - Pass custom environment parameters to @angular-builders/custom-webpack Angular 项目在 scss 文件上使用 @angular-builders/custom-webpack 编译失败 - Angular Project fails compilation with @angular-builders/custom-webpack on scss files 找不到模块“@angular/cdk/dialog”- Angular 将 v13 升级到 v14 问题 - Cannot find module '@angular/cdk/dialog' - Angular upgrade v13 to v14 issue Angular 从 v12 迁移到 v14 - Angular migration from v12 to v14 如何使用带有 angular-builder 的自定义 webpack 将整个目录复制到 dist/ 中? - How do I copy an entire directory into dist/ using custom webpack with angular-builders? v14 中 Angular 编译器的替代品是什么? - What is the replacement for the Angular Compiler in v14? Safari 中带有 Angular (v14) 应用程序的空白页面 - Blank page with Angular (v14) app in Safari 如何在 Angular(v14) 中更新@ViewChildren(或@ContentChildren)的 styles - How to update the styles of @ViewChildren (Or @ContentChildren) in Angular(v14) 将 angular 更新到 v14 后,TSlint 规则变为 ESlint - TSlint rules to ESlint after update angular to v14 Angular CLI v13 - 无法运行“ng”命令 - Angular CLI v13 - Can not run "ng" commands
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM