简体   繁体   中英

"Cannot find module '@angular/cli/plugins/webpack'"

I tried upgrading my project from Angular 4 to Angular 6 and ran into some issues with webpack. I am getting the error "Cannot find module '@angular/cli/plugins/webpack'"

Upon looking for the module.the cli folder now doesn't have a webpack.js file which was there before updating the cli version

I updated angular CLI from 1.4.1 to 6.2.9

I solved this by removing this dependency from my webpack file: require('@angular/cli/plugins/webpack');

The scripts that we were using are now default in the angular.json configuration file in Angular6+

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