. Advertisement .
..3..
. Advertisement .
..4..
It’s so awful! I am facing ”error: cannot find module ‘webpack’ ” error While I am running npm run dev
command in my Laravel VueJS project.
Error: Cannot find module 'webpack'
I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the: error: cannot find module ‘webpack’ issue? Much appreciate your support.
The cause: This error happens due to one of the following two reasons:
Solution: You can fix this error by updating the vue-loader or installing the vue-loader in your project.
Run this command to update the vue-loader:
To set up the vue-loader, run this command:
Finally, Run your project with this command:
Now, your error must be solved.