Open LinTTai opened 2 years ago
'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
D:/Web/openaccount-mob/node_modules/vue-esign/src/index.vue:268:9
266: }
267:
268: import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"
^
269:
270: function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
error during build:
Error: 'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
首先感谢作者提供的签名插件,很好用,不过发生了很尴尬的事情
当前环境:Vue 3.2.25,Vite 2.8.0
Vite 打包报错
'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" ^ 269: 270: function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { error during build: Error: 'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
是因为插件包用的Vue是2.x版本吗
在vite.config.js的resolve加上dedupe: ['vue']
首先感谢作者提供的签名插件,很好用,不过发生了很尴尬的事情
当前环境:Vue 3.2.25,Vite 2.8.0
Vite 打包报错
'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" ^ 269: 270: function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { error during build: Error: 'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
是因为插件包用的Vue是2.x版本吗