1***@qq.com
1***@qq.com
  • 发布:2024-07-29 17:13
  • 更新:2024-07-29 17:13
  • 阅读:204

使用usingComponents后没有占位组件而导致的微信小程序报错,xxx组件not found!

分类:uni-app

在manifest.json直接写死,编译进去,具体看附件或代码

{  
    "name": "test",  
    "appid": "__UNI__9E404E0",  
    "description": "",  
    "versionName": "1.0.0",  
    "versionCode": "100",  
    "transformPx": false,  
    "app-plus": {  
        /* 5+App特有相关 */  
        "usingComponents": true,  
        "nvueCompiler": "uni-app",  
        "nvueStyleCompiler": "uni-app",  
        "splashscreen": {  
            "alwaysShowBeforeRender": true,  
            "waiting": true,  
            "autoclose": true,  
            "delay": 0  
        },  
        "modules": {},  
        /* 模块配置 */  
        "distribute": {  
            /* 应用发布信息 */  
            "android": {  
                /* android打包配置 */  
                "permissions": [  
                ]  
            },  
            "ios": {},  
            /* ios打包配置 */  
            "sdkConfigs": {}  
        }  
    },  
    /* SDK配置 */  
    "quickapp": {},  
    /* 快应用特有相关 */  
    "mp-weixin": {  
        /* 小程序特有相关 */  
        "appid": "",  
        "setting": {  
            "urlCheck": false  
        },  
        "usingComponents": {  
            "uni-link": "/uni_modules/uni-link/components/uni-link/uni-link"  
        },  
        "componentPlaceholder": {  
            "uni-link": "view"  
        }  
    },  
    "vueVersion": "3"  
}
0 关注 分享

要回复文章请先登录注册