Module not found: Error: Can't resolve 'public/bundle.js' in 'webpack'

按照教程上面的命令:

webpack app/main.js public/bundle.js

报错如下:
Module not found: Error: Can't resolve 'public/bundle.js' in 'webpack'的解决方案

搜索资料发现这个是webpack版本的问题,改用命令即可

webpack app/main.js -o public/bundle.js
Module not found: Error: Can't resolve 'public/bundle.js' in 'webpack'的解决方案

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2021-07-16
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-10-29
  • 2021-06-27
  • 2021-07-09
  • 2021-06-12
相关资源
相似解决方案