采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
老师,我安装webpack-dev-server@1.16.5版本时出错,更低的版本我也试了还是不行,我传一下错误截图,希望老师拨冗指导一下,非常感谢!
看下全局webpack和webpack-dev-server版本,另外贴一下package.json文件
非常感谢!
{ "name": "mmall-fe", "version": "1.0.0", "description": "mmallweb", "main": "index.js", "scripts": { "dev": "WEBPACK_ENV=dev webpack-dev-server --inline --port 8088", "dev_win": "set WEBPACK_ENV=dev && webpack-dev-server --inline --port 8088", "dist" : "WEBPACK_ENV=online webpack -p", "dist_win" : "set WEBPACK_ENV=online && webpack -p" }, "repository": { "type": "git", "url": "git@gitee.com:luckygou/mmall-fe.git" }, "author": "wenqi", "license": "ISC", "devDependencies": { "css-loader": "^0.28.7", "extract-text-webpack-plugin": "^1.0.1", "html-loader": "^0.5.1", "html-webpack-plugin": "^2.30.1", "style-loader": "^0.19.0", "webpack": "^1.15.0" }, "dependencies": {} }
试试删了node_modules然后重新npm install一下
我也遇到同样的问题,这个后来是怎么解决的啊?
file-loader换成0.11版本,还不行再检查下webpack和webpack-dev-server的版本
登录后可查看更多问答,登录/注册
【毕设项目精品】前端实战,对接真实服务端数据,开发完整项目
1.7k 14
1.4k 13
1.9k 12
1.4k 12