真机运行到安卓报错

- 发布:2025-07-14 10:09
- 更新:2025-07-14 18:06
- 阅读:34
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.66
手机系统: Android
手机系统版本号: Android 16
手机厂商: 华为
手机机型: 华为p50
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常启动程序
正常启动程序
实际结果:
[plugin:vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .nvue file format, or if it's an asset, add "*/.nvue" to assetsInclude in your configuration. 09:34:21.826 at pages/video/index.nvue:9:4 09:34:21.826 7: / 09:34:21.826 8: 引入评论组件 09:34:21.826 9: / 09:34:21.826 ^ 09:34:21.826 10: import douyinScrollview from '@/components/douyin-scrollview/douyin-scrollview.nvue
[plugin:vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .nvue file format, or if it's an asset, add "*/.nvue" to assetsInclude in your configuration. 09:34:21.826 at pages/video/index.nvue:9:4 09:34:21.826 7: / 09:34:21.826 8: 引入评论组件 09:34:21.826 9: / 09:34:21.826 ^ 09:34:21.826 10: import douyinScrollview from '@/components/douyin-scrollview/douyin-scrollview.nvue
bug描述:
[plugin:vite:build-import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .nvue file format, or if it's an asset, add "*/.nvue" to assetsInclude in your configuration. 09:34:21.826 at pages/video/index.nvue:9:4 09:34:21.826 7: / 09:34:21.826 8: 引入评论组件 09:34:21.826 9: / 09:34:21.826 ^ 09:34:21.826 10: import douyinScrollview from '@/components/douyin-scrollview/douyin-scrollview.nvue 真机运行报错,无法启动程序。注释掉真机就可以正常运行
