'openBlock' is not exported by node_modul
es/@dcloudio/uni-mp-vue/dist/vue.runtime.
esm.js, imported by node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js
- 发布:2023-02-15 20:38
- 更新:2023-08-14 10:05
- 阅读:3139
dev mp-weixin 出错,怎么处理呢
豌豆 (作者)
使用npx @dcloudio/uvm 升级后出现这个问题。
之后,在gitee下载新模板后,重新把原pages复制到新模板中,再重新安装依赖后,还是出现这个问题。
如果是新模板,且默认内容。并不会出现这个问题
豌豆 (作者)
运行报错信息
'openBlock' is not exported by node_modules/
@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js
, imported by node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js
at ../node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js:1:79
1: import { withModifiers, createVNode, ge
tCurrentInstance, ref, defineComponent, open
Block, createElementBlock, provide, computed
, watch, onUnmounted, inject, onBeforeUnmoun
t, mergeProps, injectHook, reactive, onActiv
ated, onMounted, nextTick, onBeforeMount, wi
thDirectives, vShow, shallowRef, watchEffect
, isVNode, Fragment, markRaw, Comment, h, cr
eateTextVNode, createBlock, onBeforeActivate
, onBeforeDeactivate, renderList, onDeactiva
ted, createApp, Transition, effectScope, wit
hCtx, KeepAlive, resolveDynamicComponent, cr
eateElementVNode, normalizeStyle, renderSlot } from "vue";
^
2:
3: import { isString, extend, isArray, rem
ove, stringifyStyle, parseStringStyle, isPla
inObject, isFunction, capitalize, camelize,
hasOwn, isObject, toRawType, makeMap as make
Map$1, isPromise, hyphenate, invokeArrayFns as invokeArrayFns$1 } from "@vue/shared";
Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序
有时候单词写错了,有时候会自动引入一个模块代码
3***@qq.com
醍醐灌顶,找到了import {onAppShow} from "@dcloudio/uni-h5";
虽然没引用,但是确实是无端引入的东西,压根没注意,删了之后正常
2023-08-08 10:07
DANKEBIBI
感谢感谢
2023-08-11 11:42
m***@qq.com
确实有效果,最好用多文件查找@dcloudio/uni-h5看看是不是多加了行引入
2023-09-23 14:50