Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Cannot destructure property `compile` of 'undefined' or 'null'

Steps to reproduce: I run vue init webpack myapp with options selected as per screenshot.

enter image description here

Then I got ouput as follows:

enter image description here

npm run dev works fine when I don't do npm audit fix --force or npm install --save-dev [email protected] and npm install --save-dev [email protected] which I get with npm audit

enter image description here

When I got fixed and run npm run dev, not it's giving errors

enter image description here

Then I run npm i -D webpack-cli as recommended in the output.

But now I have the following error when running npm run dev

enter image description here

Can't figure how to fix this issue...

like image 957
Askar Avatar asked Dec 09 '18 07:12

Askar


1 Answers

The issue is with the webpack-dev-server which shouldn't be used in production, so it's generally safe to have a vulnerability in this (until dependent packages update to support version 3.1)

npm install -D [email protected]
like image 138
Trent Avatar answered Oct 14 '22 08:10

Trent