Webpack issues NormalModuleFactory

Hi, I just experienced some problem with webpack today.

My codes were completely working yesterday, but when I got back and tried to run it again it gave me error.

node_modules\webpack\lib\NormalModuleFactory.js:279
                                                throw new Error(
                                                ^

Error: NormalModuleFactory.resolve (NormalModuleFactory) is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created. Returning a Module object will result in this module used as result.   

Did anything changes since it was working?

Try deleting node_modules and any package lock files and re-install (e.g. npm install).

1 Like