翁国超
2018-08-24 21:05
主要报错是这个:
ERROR in Path must be a string. Received undefined。代码如下:
。
有遇到过吗?我的package.json如下:
{ "name": "webpack4config", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "webpack": "webpack --config webpack.config.js --progress --display-modules --colors --display-reason" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "webpack": "^4.17.1", "webpack-cli": "^3.1.0", "webpack-html-plugin": "^0.1.1" }
不好意思,搞错了,html包名称安装错了。是“html-webpack-plugin”而不是“webpack-html-plugin”。安装对了就没有问题了
webpack深入与实战
86561 学习 · 721 问题
相似问题