在使用webpack-dev-server时,每次启动或者打包文件,总是会弹出如下警告信息:
WARNING in ./node_modules/_webpack@3.10.0@webpack/buildin/global.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* E:\Project\webpack\node_modules\_webpack@3.10.0@webpack\buildin\global.js
Used by 1 module(s), i. e.
E:\Project\webpack\node_modules\_sockjs-client@1.1.4@sockjs-client\dist\sockjs.js
* e:\Project\webpack\node_modules\_webpack@3.10.0@webpack\buildin\global.js
Used by 1 module(s), i. e.
e:\Project\webpack\node_modules\_punycode@1.4.1@punycode\punycode.js
@ ./node_modules/_webpack@3.10.0@webpack/buildin/global.js
@ ./node_modules/_sockjs-client@1.1.4@sockjs-client/dist/sockjs.js
@ ./node_modules/_webpack-dev-server@2.11.1@webpack-dev-server/client/socket.js
@ ./node_modules/_webpack-dev-server@2.11.1@webpack-dev-server/client?http://localhost:8080
@ multi ./node_modules/_webpack-dev-server@2.11.1@webpack-dev-server/client?http://localhost:8080 ./m ain.js
大概看了下,好像是说有两个模块的标识符不一致,主要是 "E" 和 "e"的不同,查找了下别人的回答,说可能是window下盘符大小写的问题。
但依然不知道怎么解决这个问题。
我使用的是window系统,vscode里面的命令行,即使换成git bash里面运行webpack-dev-server命令,依然会弹出警告。
有知道怎么解决的吗?
把node_modules包删除,然后重新安装一下,竟然自己又好了。
我....懵...
讲个笑话,"精通webpack".