j***@126.com
j***@126.com
  • 发布:2025-03-27 23:06
  • 更新:2025-03-31 13:03
  • 阅读:53

【报Bug】 "openBlock" is not exported by "node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js"

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11 企业版

HBuilderX类型: 正式

HBuilderX版本号: 4.57

第三方开发者工具版本号: 1

基础库版本号: 3.0.0-4050720250324001

项目创建方式: HBuilderX

操作步骤:

npm run dev:mp-weixin

预期结果:

不报错,可正常运行

实际结果:

node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js (1:79): "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".

bug描述:

附件中有demo运行报错。使用npm run dev:h5运行正常。

npm run dev:mp-weixin

node_modules/@dcloudio/uni-h5/dist/uni-h5.es.js (1:79): "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, getCurrentInstance, ref, defineComponent, openBlock, createElementBlock, provide...
2: import { isArray, isString, extend, remove, stringifyStyle, parseStringStyle, isPlainObject, isFunction, capitalize, ...
3: import { once, UNI_STORAGE_LOCALE, I18N_JSON_DELIMITERS, Emitter, passive, resolveComponentInstance, normalizeStyles,...

2025-03-27 23:06 负责人:无 分享
已邀请:
DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

参考这个 https://ask.dcloud.net.cn/question/163203

要回复问题请先登录注册