It‘s not allowed to load an initial chunk on demand. The chunk name “components/xxx/xxx

uni-app It’s not allowed to load an initial chunk on demand. The chunk name “components/xxx/xxx”
微信小程序运行的时候总是提示这个问题,不只是这一个组件,其他组件也有相同的问题。

原因:当创建文件夹的时候 pages.json里面注册了这个组件的然而我们是不需要当一个页面的

It‘s not allowed to load an initial chunk on demand. The chunk name “components/xxx/xxx
解决办法:删除即可。

本文转载,原文来源于:https://blog.csdn.net/weixin_43550660/article/details/105222262