Sunday 8 July 2018

TypeError: Cannot read property 'thisCompilation' of undefined



Follow these steps one by one  to resolve the error on windows/linux machine


npm i -g @angular/cli@latest

rm -rf node_modules / rd /s /q node_modules 

npm cache clear --force

npm cache verify

npm install

npm uninstall webpack

npm install --save-dev --save-exact @angular/cli@latest



You might get below error also 


webpack/lib/node/NodeTemplatePlugin'


Solution 
npm remove webpack -g

npm i webpack --save-dev

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. rm -rf node_modules / rd /s /q node_modules whipped root folders on my macbook pro, meaning I needed to reinstall the OS. DO NOT RUN THESE COMMANDS!

    ReplyDelete

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...