require function is used in a way in which dependencies cannot be statically extracted
require function is used in a way in which dependencies cannot be statically extracted
npm run dev时控制台报错
图一是报错情况,后来无意搜索了一下webpack字段,在我的index.vue中发现了import { debug} from ‘webpack’
到底是啥时候自己加的代码我也不知道,就是这行代码导致始终编译不成功

后来删掉这行代码就可以

具体是这么产生的不知道,先删掉这行代码再说, 继续开发吧,唉

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
  • 2021-06-08
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2021-05-05
  • 2021-11-06
  • 2021-07-05
  • 2022-01-16
  • 2021-12-05
相关资源
相似解决方案