c***@cirtech.com.cn
c***@cirtech.com.cn
  • 发布:2023-11-29 15:31
  • 更新:2023-11-29 15:35
  • 阅读:627

uniapp引入xr-frame组件总是报错 pages/demo/index.json: ["usingComponents"]["xr-start"] 未找到

分类:uni-app


编译完之后会生成一个index.vue 文件

然后直接通过import引用

import xrStart from '@/components/xr-start'  

引入之后页面无法渲染 报错:
pages/demo/index.json: ["usingComponents"]["xr-start"] 未找到

2023-11-29 15:31 负责人:无 分享
已邀请:
c***@cirtech.com.cn

c***@cirtech.com.cn (作者)

{  
      "path": "pages/demo/index",  
      "style": {  
        "usingComponents": {  
          "xr-start": "../../wxcomponents/xr-start"  
        },  
        "disableScroll": true  
      }  
    }

通过这种方式引入同时会报引入错误

  • a***@126.com

    你解决了吗

    2023-12-21 20:00

  • w***@jiangzi.xin

    manifest.json中 小程序mp-weixin 配置增加:

    "lazyCodeLoading" : "requiredComponents",

    2024-06-04 02:45

要回复问题请先登录注册