2***@qq.com
2***@qq.com
  • 发布:2024-09-29 17:10
  • 更新:2024-09-29 17:10
  • 阅读:92

vue3 Ts vite cli 项目引入TRTC 引入组件 运行报错?怎么解决

分类:uni-app

17:05:35.108 [vite]: Rollup failed to resolve import "/Users/guanfushang/Desktop/MhdApp/src/components/TRTCCloudUniPlugin-TXRemoteViewComponent/index.vue" from "/Users/guanfushang/Desktop/MhdApp/src/TrtcCloud/view/TrtcRemoteView.nvue".
17:05:35.112 This is most likely unintended because it can break your application at runtime.
17:05:35.113 If you do want to externalize this module explicitly add it to
17:05:35.117 build.rollupOptions.external

17:09:22 [vite] [plugin:vite:import-analysis] Failed to resolve import "/Users/guanfushang/Desktop/MhdApp/src/components/TRTCCloudUniPlugin-TXRemoteViewComponent/index.vue" from "src/TrtcCloud/view/TrtcRemoteView.nvue". Does the file exist?
at TrtcCloud/view/TrtcRemoteView.nvue:1:26
1 | import __easycom_0 from '/Users/guanfushang/Desktop/MhdApp/src/components/TRTCCloudUniPlugin-TXRemoteViewComponent/index.vue';import { resolveDynamicComponent as __resolveDynamicComponent } from 'vue';import { resolveEasycom } from '@dcloudio/uni-app';
| ^
2 | const _sfc_main = {
3 | name: 'TrtcRemoteView', (x3)

什么问题呀? 单单 Hbuilder X 创建的vue2模版项目就可以运行。

2024-09-29 17:10 负责人:无 分享
已邀请:

要回复问题请先登录注册