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

TypeError: Cannot read property 'normalModuleFactory' of undefined #1

Closed
twclark0 opened this issue Sep 19, 2018 · 6 comments
Closed

Comments

@twclark0
Copy link

Getting this issue when trying to run webpack after installing the package and adding it to the plugins. Referencing this function compiler.hooks.normalModuleFactory.tap

Webpack version 3.1.0
Webpack-dev-server 2.7.1

Not sure if that is enough context or not.

@developit
Copy link
Collaborator

Hello! This plugin currently requires Webpack 4+.

@sdougbrown
Copy link

I misunderstood the webpack 4 requirement based on the peer deps in the project's package.json. Thanks for clarifying.

@ctf0
Copy link

ctf0 commented Sep 20, 2018

@developit

"webpack": "^4.17.1"

"webpack": ">= 3"

which one is correct ?

@developit
Copy link
Collaborator

Apologies, I'd incorrectly indicated webpack@3 compatibility there. If anyone really needs webpack 3 support, it's been fixed.

@emps
Copy link

emps commented Mar 29, 2020

so what the solution for this ?

@j-funk
Copy link

j-funk commented Jul 11, 2021

Looks like you need to upgrade webpack.

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

6 participants