您的位置: 首页 > 文章 > uni-app 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" 分类: 文章 • 2024-02-07 19:52:10 uni-app It’s not allowed to load an initial chunk on demand. The chunk name “components/xxx/xxx” 微信小程序运行的时候总是提示这个问题,不只是这一个组件,其他组件也有相同的问题。 原因: 当创建文件夹的时候 pages.json里面注册了这个组件的然而我们是不需要当一个页面的 解决办法:将其删除即可