Answer the question
In order to leave comments, you need to log in
How to fix similar error after typing npm run dev command?
After typing npm run dev command the following error appears ->
C:\Users\yakoTa\Desktop\pepelats.pro\node_modules\webpack-dev-middleware\lib\context.js:95
context.compiler.hooks.invalid. tap('WebpackDevMiddleware', invalid);
TypeError: Cannot read property 'invalid' of undefined
at ctx (C:\Users\yakoTa\Desktop\pepelats.pro\node_modules\webpack-dev-middleware\lib\context.js:95:26)
at wdm (C:\ Users\yakoTa\Desktop\pepelats.pro\node_modules\webpack-dev-middleware\index.js:46:19)
at Object. (C:/Users/yakoTa/Desktop/pepelats.pro/server/index.js:20:11)
at Module._compile (module.js:652:30)
at loader (C:\Users\yakoTa\Desktop\pepelats .pro\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (C:\Users\yakoTa\Desktop\pepelats.pro\node_modules\babel-register\lib\node.js:154:7)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at Object. (C:\Users\yakoTa\Desktop\pepelats.pro\node_modules\babel-cli\lib\_babel-node.js:154:22)
at Module._compile (module.js:652:30)
at Object.Module. _extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497: 3)
[nodemon] app crashed - waiting for file changes before starting...
<-
But how to fix it? help me please!
Answer the question
In order to leave comments, you need to log in
https://github.com/webpack/webpack-dev-middleware/...
I slove it use "webpack-dev-middleware": "^2.0.6",
Update dependencies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question