<template>
<view>
123123123
</view>
</template>
<script >
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
- 发布:2023-05-06 11:38
- 更新:2023-07-11 14:24
- 阅读:1115
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
手机系统: Android
手机系统版本号: Android 12
手机厂商: 小米
手机机型: 小米12s Pro
页面类型: nvue
vue版本: vue3
打包方式: 云端
项目创建方式: CLI
CLI版本号: 3.0.0-3070920230324001
示例代码:
操作步骤:
直接编译
直接编译
预期结果:
不报错并且正常显示页面
不报错并且正常显示页面
实际结果:
编译报错并且无法显示页面
编译报错并且无法显示页面
bug描述:
编译nvue页面报错
11:33:32.298 X [ERROR] No matching export in "dist/dev/.nvue/pages/agreement2/agreement2.js" for import "default"
11:33:32.299 <stdin>:1:7:
11:33:32.304 1 │ import App from './pages/agreement2/agreement2.js'
11:33:32.304 ╵ ~~~
11:33:32.310 [plugin:uni:app-nvue-esbuild] Build failed with 1 error:
11:33:32.310 <stdin>:1:7: ERROR: No matching export in "dist/dev/.nvue/pages/agreement2/agreement2.js" for import "default"
me落叶 (作者) - 674965
"dependencies": {
"@dcloudio/uni-app": "3.0.0-3070920230324001",
"@dcloudio/uni-app-plus": "3.0.0-3070920230324001",
"@dcloudio/uni-components": "3.0.0-3070920230324001",
"@dcloudio/uni-h5": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-alipay": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-baidu": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-jd": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-lark": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-qq": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-toutiao": "3.0.0-3070920230324001",
"@dcloudio/uni-mp-weixin": "3.0.0-3070920230324001",
"@dcloudio/uni-quickapp-webview": "3.0.0-3070920230324001",
"bignumber.js": "^9.1.1",
"gcoord": "^1.0.5",
"js-base64": "^3.7.5",
"mitt": "^3.0.0",
"pinia": "^2.0.33",
"pinia-plugin-persistedstate": "^3.1.0",
"uqrcodejs": "^4.0.6",
"vue": "3.2.47",
"vue-i18n": "^9.2.2"
},
"devDependencies": {
"@dcloudio/types": "3.3.2",
"@dcloudio/uni-automator": "3.0.0-3070920230324001",
"@dcloudio/uni-cli-shared": "3.0.0-3070920230324001",
"@dcloudio/uni-stacktracey": "3.0.0-3070920230324001",
"@dcloudio/vite-plugin-uni": "3.0.0-3070920230324001",
"@types/node": "^18.15.1",
"@vue/tsconfig": "^0.1.3",
"sass": "^1.59.2",
"sass-loader": "^13.2.0",
"typescript": "^4.9.4",
"unplugin-auto-import": "^0.15.1",
"vite": "4.1.4",
"vue-tsc": "^1.0.24"
}
俺也一样。。。
本来3.7.9开发的,只有一个nuve页面,里面有socket,真机正常,打包就出问题,还会提示3.7.11和3.7.9的sdk差异,我就升级了一下,改成了3.7.11开发,然后就编译不通过了,报错跟你一毛一样!
链接: https://pan.baidu.com/s/1E1wyKrZtGHtE9Dg5fxsgrw 提取码: epet