DevTools failed to load SourceMap: Could not load content for webpack:///node_modules/sockjs-client/

webpack使用过程中,控制台出现出现如下警告:

DevTools failed to load SourceMap: Could not load content for webpack:///node_modules/sockjs-client/

 

 

 解决方法:

module.exports = {
  entry: {
        xxx....
  },
  devtool: 'inline-source-map',  // 加上对应的配置
}   

重新启动项目,警告消失!

上一篇:WebSocket connection to 'ws://192.168.3.195:9527/sockjs-node/564/fjaw2vh2/websocket' faile


下一篇:vue+vue-video-player+sockjs完成直播和聊天室(PC+h5)