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

11,320

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]
Share:
11,320
Askar
Author by

Askar

Learning Ruby on Rails and other web dev related stuff.

Updated on June 07, 2022

Comments

  • Askar
    Askar almost 2 years

    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...

  • Juriy
    Juriy about 2 years
    Have fixed issue "Cannot destructure property 'compile' of 'compiler.hooks" while was starting react-window lib sources