TypeError: Cannot read property thisCompilation of undefined

TypeError: Cannot read property ‘thisCompilation’ of undefined

Solution:
to package.json The
“extract text webpack plugin”: “^ 4.0.0-beta. 0”
of the file should be changed to
“extract text webpack plugin”: “^ 3.0.0”
and then re install and execute NPM install

Read More: