bigboom's avatar

Webpack-dev-server - Missing Origin Validation

When I do a fresh install of laravel 5.7, and run npm install, I get this 1 high severity vulnerability about the Missing Origin Validation of the webpack-dev-server.

I am not able to get rid of this. When I run npm i webpack-dev-server

It will start giving me all kinds of peers that I need to install. For instance: [email protected] requires a peer of ajv@^6.0.0 but none is installed. etc.etc.

I tried doing this manually but in the end I get stuck.

In another project, v5.6 I also have this problem. But there I am also not able to run npm run dev anymore.

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

events.js:167 throw er; // Unhandled 'error' event ^

0 likes
1 reply
D9705996's avatar

The vulnerability warning shouldn't be causing you issues running npm run dev`. Its just a warning which hopefully should get resolved in mix as per this issue.

https://github.com/JeffreyWay/laravel-mix/issues/1809

Are you able to show the errors you get when running npm run dev ( please format as code by enclosing within ``` at the start and end on their own lines)

Please or to participate in this conversation.