在h5上面运行正常,运行到微信小程序就报错了
17:47:03.140 vite v2.9.14 building for development...
17:47:03.146 (node:14844) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at E:\obejct\uni-preset-vue-vite\node_modules\vuex\package.json.
17:47:03.150 Update this package.json to use a subpath pattern like "./*".
17:47:03.151 (Use node --trace-deprecation ...
to show where the warning was created)
17:47:06.790 'isVNode' is not exported by node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js, imported by node_modules/@vant/use/dist/index.esm.mjs
17:47:06.803 at ../node_modules/@vant/use/dist/index.esm.mjs:79:2
17:47:06.804 77: // src/useRelation/useChildren.ts
17:47:06.818 78: import {
17:47:06.827 79: isVNode,
17:47:06.834 ^
17:47:06.834 80: provide,
17:47:06.840 81: reactive,
1 个回复
DCloud_UNI_WZF
vue 版本 vant3 不兼容微信小程序,多端项目引入的组件库,同样需要是跨端组件库(比如 uni-ui)