简体   繁体   中英

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

We recently migrated Angular from version 13 to 14.

My dev dependencies and global cli both are v14.0 and we are using

" @angular-builders/custom-webpack " (latest version 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.

在此处输入图像描述

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. Maybe I need to wait for them to update the package.

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

I will sum up the thread mentioned in @R. Richards' comment .

Author of @angular-builders is currently working on v14 support, PR link:

To temporarily fix the problem, you can delete this folder:

  • 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM