npm run dev報(bào)錯(cuò),老師可以幫忙看下嗎
Child html-webpack-plugin for "index.html":
? ? ?1 asset
? ? Entrypoint undefined = index.html
? ? [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/html-webpack-plugin/default_index.ejs] 376 bytes {0} [built]
? ? [./node_modules/lodash/lodash.js] 527 KiB {0} [built]
? ? [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built]
這個(gè)是我的版本
"webpack": "^4.25.1",
"webpack-dev-server": "^3.1.10"
2019-06-14
解決方法:降低版本 extract-text-webpack-plugin
npm install --save extract-text-webpack-plugin@2.1.2
2019-05-10
找到原因了嗎,我也是這個(gè)問題,找了很久找不到答案
2018-12-14
Entrypoint undefined = index.html 沒有找到入口的頁面文件,你是不是沒有安裝 html-webpack-plugin 和配置這塊的內(nèi)容
2018-11-15
好像是因?yàn)閔ot出的問題,加了hot:true就會(huì)報(bào)錯(cuò),刪了就正常