uni-app It’s not allowed to load an initial chunk on demand. The chunk name “components/xxx/xxx”

微信小程序运行的时候总是提示这个问题,不只是这一个组件,其他组件也有相同的问题。

原因:

  • 当创建文件夹的时候 pages.json里面注册了这个组件的然而我们是不需要当一个页面的
  • uni-app It's not allowed to load an initial chunk on demand. The chunk name "components/xxx/xxx"
  • 解决办法:将其删除即可

相关文章:

  • 2022-01-10
  • 2021-09-27
  • 2021-10-24
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2021-08-09
  • 2022-02-20
  • 2021-08-07
  • 2021-04-18
  • 2022-12-23
  • 2021-09-25
  • 2021-04-09
相关资源
相似解决方案