npm run dev 运行报错,请问什么原因?怎么解决
E:\springboot\xxxxx\keyu\operation-web\node_modules\webpack-dev-middleware\lib\contex...
E:\springboot\xxxxx\keyu\operation-web\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 (E:\springboot\xxxxx\keyu\operation-web\node_modules\webpack-dev-middleware\lib\context.js:95:26)
at wdm (E:\springboot\xxxxx\keyu\operation-web\node_modules\webpack-dev-middleware\index.js:47:19)
at Object.<anonymous> (E:\springboot\xxxxx\keyu\operation-web\build\dev-server.js:26:56)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3 展开
context.compiler.hooks.invalid.tap('WebpackDevMiddleware', invalid);
^
TypeError: Cannot read property 'invalid' of undefined
at ctx (E:\springboot\xxxxx\keyu\operation-web\node_modules\webpack-dev-middleware\lib\context.js:95:26)
at wdm (E:\springboot\xxxxx\keyu\operation-web\node_modules\webpack-dev-middleware\index.js:47:19)
at Object.<anonymous> (E:\springboot\xxxxx\keyu\operation-web\build\dev-server.js:26:56)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询