1

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

1
  • Did you ever find the solution to this? Commented Apr 17, 2019 at 22:44

1 Answer 1

1

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+

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.