编译uni-app报错:“default“ is not exported by “node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js“
使用Vue3,在HBuilder中编译uni-app应用报错:“default” is not exported by “node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js”, imported by

原因是在Vue3中,use这个API已经无法使用了:
https://v3-migration.vuejs.org/zh/breaking-changes/global-api.html#%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91%E8%80%85%E9%A1%BB%E7%9F%A5

可以把import Vue from 'vue'和Vue.use(Vuex)注释掉,然后重新编译就通过了:
