webpack3.10.0打包fs,net,tls报错,添加fs:empty依然报错,求解决办法
ERROR in ./node_modules/spdy/lib/spdy/server.js
Module not found: Error: Can't resolve 'tls' in 'F:\liuxk\qnz-web\node_modules\spdy\lib\spdy'
@ ./node_modules/spdy/lib/spdy/server.js 6:10-24
@ ./node_modules/spdy/lib/spdy.js
@ (webpack)-dev-server/lib/Server.js
@ ./bin/dev-server.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./bin/dev-server.js
ERROR in ./node_modules/send/index.js
Module not found: Error: Can't resolve 'fs' in 'F:\liuxk\qnz-web\node_modules\send'
@ ./node_modules/send/index.js 23:9-22
@ ./node_modules/serve-static/index.js
@ ./node_modules/express/lib/express.js
@ ./node_modules/express/index.js
@ (webpack)-dev-server/lib/Server.js
@ ./bin/dev-server.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./bin/dev-server.js
ERROR in ./node_modules/express/lib/request.js
Module not found: Error: Can't resolve 'net' in 'F:\liuxk\qnz-web\node_modules\express\lib'
@ ./node_modules/express/lib/request.js 18:11-25
@ ./node_modules/express/lib/express.js
@ ./node_modules/express/index.js
@ (webpack)-dev-server/lib/Server.js
@ ./bin/dev-server.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./bin/dev-server.js
webpack:3.10.0
webpack-dev-server:2.9.7
我已经在webpack中配置了node,但是依然报错,求解决办法
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论