m***@gmail.com
m***@gmail.com
  • 发布:2024-01-16 21:09
  • 更新:2024-01-16 21:09
  • 阅读:124

uniapp中第一次构建easycom 没有生效,然后在pages.json中空格保存后,easycom就生效了,谁能给看看这个问题啊?

分类:uni-app

uniapp中第一次构建easycom 没有生效,然后在pages.json中空格保存后,easycom就生效了,谁能给看看这个问题啊?

第一次执行
npm run dev:h5
构建时: 页面报错如下

[Vue warn]: Failed to resolve component: uni-collapse-item  
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.   

uni-h5.es.js:15495 [Vue warn]: Failed to resolve component: uni-collapse  
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

此时在pages.json中进行编辑,随便编辑,例如打个空格后保存。此时页面刷新正常。

环境是最新环境uniapp + vue3 + vite

2024-01-16 21:09 负责人:无 分享
已邀请:

要回复问题请先登录注册