Error message : Cannot read Property 'thisCompilation' of Undefined

Asked

Viewed 716 times

0

I’m using Angular for a project and Visual Studio Code when running the command ng serve, return the following error to me:

  • NG Live Development Server is Listening on localhost:4200, open your browser on http://localhost:4200/ ** 0% compiling Cannot read Property 'thisCompilation' of Undefined
  • 1

    What version of Webpack ? Try the following: npm remove webpack and npm install [email protected]

  • I was able to resolve the matter https://stackoverflow.com/questions/43304864/angular-2-typeerror-cannot-read-property-profile-of-null-error

  • and just what you’ve been through

  • "webpack": "version": "4.0.1",

1 answer

1


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

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

npm remove webpack
npm install [email protected]

References

Browser other questions tagged

You are not signed in. Login or sign up in order to post.