将manifest.json中的vue版本设为3时,重新编译运行后wxcomponents下的组件不会被加载。改为vue2后可以正常加载
![4***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/8179e70d34be51e804fe46393b87e5aa.png)
- 发布:2022-06-06 12:29
- 更新:2022-06-06 22:33
- 阅读:870
产品分类: uniapp/H5
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: Monterey 12.4
HBuilderX类型: 正式
HBuilderX版本号: 3.4.7
浏览器平台: Chrome
浏览器版本: 102.0.5005.61
项目创建方式: HBuilderX
操作步骤:
预期结果:
将manifest.json中的vue版设为3时,首页应该显示wx组件中的test字符串
将manifest.json中的vue版设为3时,首页应该显示wx组件中的test字符串
实际结果:
将manifest.json中的vue版设为3时,首页没有显示wx组件中的test字符串,并且在控制台报了警告
[Vue warn]: Failed to resolve component: test-component
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
将manifest.json中的vue版设为3时,首页没有显示wx组件中的test字符串,并且在控制台报了警告
[Vue warn]: Failed to resolve component: test-component
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
4***@qq.com (作者)
好的
2022-06-07 09:20