
- 发布:2025-07-07 10:51
- 更新:2025-07-07 10:56
- 阅读:116
【报Bug】cli创建的项目,nvue文件真机运行报错[ERROR] No matching export in "dist/dev/.nvue/xxx" for import "default"
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: CLI
CLI版本号: 3.5.15
测试过的手机:
操作步骤:
真机运行
真机运行
预期结果:
正常运行,展示页面
正常运行,展示页面
实际结果:
真机运行报错X [ERROR] No matching export in "dist/dev/.nvue/pages/video/index.js" for import "default"
10:08:44.567 <stdin>:1:7:
10:08:44.567 1 │ import App from './pages/video/index.js'
10:08:44.567 ╵ ~~~
10:08:44.630 [plugin:uni:app-nvue-esbuild] Build failed with 1 error:
10:08:44.630 <stdin>:1:7: ERROR: No matching export in "dist/dev/.nvue/pages/video/index.js" for import "default"
真机运行报错X [ERROR] No matching export in "dist/dev/.nvue/pages/video/index.js" for import "default"
10:08:44.567 <stdin>:1:7:
10:08:44.567 1 │ import App from './pages/video/index.js'
10:08:44.567 ╵ ~~~
10:08:44.630 [plugin:uni:app-nvue-esbuild] Build failed with 1 error:
10:08:44.630 <stdin>:1:7: ERROR: No matching export in "dist/dev/.nvue/pages/video/index.js" for import "default"
y***@163.com (作者)
根据这个更改后,样式混乱,要升级saas版本,但是uview-plus又需要指定saas版本,还有别的解决方案吗
2025-07-07 13:50
DCloud_UNI_JBB
回复 y***@163.com: 其他端有问题吗?安卓或ios
53 分钟前