Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run webpack: TypeError: webpack.LoaderOptionsPlugin is not a constructor #24

Closed
akitengineer opened this issue Dec 29, 2016 · 4 comments

Comments

@akitengineer
Copy link

Following error is occurring when I am trying to run

node_modules/.bin/webpack

image

@JeffreyWay
Copy link
Collaborator

Can you do rm -rf node_modules && npm install && node_modules/.bin/webpack. Does it turn out differently?

@Bram-Zijp
Copy link

This and cleaning up my package.json solved the error running Laravel 5.3

@entozoon
Copy link

entozoon commented May 16, 2017

I keep ending up here debugging the same error but for a different reason - using yarn.
The problem being that the yarn.lock somehow ends up with broken packages and the solution, if it helps anyone, is simply to reset it all:

rm -rf node_modules
rm yarn.lock
yarn cache clean
yarn install
node_modules/.bin/webpack

@srikanthpullela
Copy link

srikanthpullela commented Jan 22, 2018

Hi All,
I am getting the same issue while running the karma file.
screen shot 2018-01-22 at 1 03 51 pm

"karma" : "2.0.0",
"karma-webpack": "^2.0.3",
"webpack": "^1.12.2"

Could you please let me know where I went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants