在学习webpack过程中,我遇到的下面这个问题及解决方法。

问题如下:

node版本如下截图:

Webpack ERROR in Path must be a string. Received undefined

package.json文件截图:

Webpack ERROR in Path must be a string. Received undefined

webpack.config.js文件截图:

Webpack ERROR in Path must be a string. Received undefined

 

然后,我运行项目,报错信息:ERROR in Path must be a string. Received undefined

Webpack ERROR in Path must be a string. Received undefined

 

解决方法:

webpack.config.js文件做修改,保存修改再运行问题解决。

 

plugins: [

 new HtmlWebpackPlugin({

    title: 'use plugin',

    filename: 'index.html'

 })

]

 

 

(ps:以上是我遇到问题,所解决的方法。如果有其他方法,欢迎大家指教,谢谢)

 

相关文章:

  • 2021-12-21
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-14
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-03-07
  • 2021-12-08
相关资源
相似解决方案