Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot read property 'thisCompilation' of undefined in Visual Code

I am using the latest version of Visual Studio Code. When I run the command 'ng serve' I get the below error:

enter image description here

This code is referring to a series of nodes and plugins that I had updated per a previous assignment that compiled without issue. Has anyone run into a similar issue?

like image 554
htmlbran86 Avatar asked Dec 05 '22 12:12

htmlbran86


1 Answers

I ended up uninstalling and reinstalling the latest webpack and cli. I then ran ng serve and it compiled successfully.

To remove the webpack: npm remove webpack

To install: npm install --save-dev @angular/cli@latest

like image 119
htmlbran86 Avatar answered May 27 '23 02:05

htmlbran86