Err Msg: Can not read property 'thisCompilation' of undefined

0

I'm using Angular for a project and Visual Studio Code when I run the command ng serve , it returns me the following error:

  
  • NG Live Development Server is listening on localhost: 4200, open your browser on link ** 0% compiling Can not read   property 'thisCompilation' of undefined
  •   
    
asked by anonymous 04.03.2018 / 00:23

1 answer

1

This error happens due to a bug in the 4.0.0 version, there are several bug reports in GitHub

To fix just remove and install earlier version, as the following example:

npm remove webpack
npm install [email protected]

References

04.03.2018 / 00:38