Webpack HMR在Node 5.x.x中运行,但在6.x.x中不运行

时间:2016-06-08 04:12:05

标签: node.js webpack

所以,我有webpack dev server运行捆绑并热重新加载我的客户端资产,同时将所有请求代理到在不同端口上运行的快速服务器。这非常有效,但是,当我将Node从v.5.11.0升级到6.2.1时,我在终端中收到此错误:

Error: Cannot GET /dist/bundle.js
at raiseUrlNotFoundError (/Users/OSX/WebstormProjects/wittiest/node_modules/loopback/server/middleware/url-not-found.js:15:17)
at Layer.handle [as handle_request] (/Users/OSX/WebstormProjects/wittiest/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/OSX/WebstormProjects/wittiest/node_modules/express/lib/router/index.js:312:13)
at /Users/OSX/WebstormProjects/wittiest/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/Users/OSX/WebstormProjects/wittiest/node_modules/express/lib/router/index.js:330:12)
at next (/Users/OSX/WebstormProjects/wittiest/node_modules/express/lib/router/index.js:271:10)
at SendStream.error (/Users/OSX/WebstormProjects/wittiest/node_modules/serve-static/index.js:120:7)
at emitOne (events.js:96:13)
at SendStream.emit (events.js:188:7)
at SendStream.error (/Users/OSX/WebstormProjects/wittiest/node_modules/serve-static/node_modules/send/index.js:245:17)

有什么想法吗?

0 个答案:

没有答案