webpack报错2 ERROR in Entry module not found
解决2:
报错如下
ERROR in Entry module not found: Error: Can't resolve ' src/index.js' in 'D:\00-学习笔记\06-vue\vuecode\webpack\webpack01'
ERROR in multi (webpack)-dev-server/client?http://localhost:3000 src/index.js
Module not found: Error: Can't resolve ' src/index.js' in 'D:\00-学习笔记\06-vue\vuecode\webpack\webpack01'
@ multi (webpack)-dev-server/client?http://localhost:3000 src/index.js main[1]
找不到对应文件,解决问题
entry:'./src/index.js', //解决
路径需要+./