1***@qq.com
1***@qq.com
  • 发布:2024-03-15 11:41
  • 更新:2024-08-21 10:32
  • 阅读:888

uni-app编译微信小程序报错"isInSSRComponentSetup" is not exported by "vue.runtime.esm-bundler.js"

分类:uni-app

版本信息:
"@dcloudio/uni-app": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-components": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-h5": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-jd": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-mp-xhs": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4000320240311001",
"@dcloudio/uni-ui": "^1.4.28",
"@uni-helper/uni-app-types": "^0.5.8",
"clipboard": "^2.0.11",
"dayjs": "^1.11.9",
"esbuild": "^0.18.6",
"pinia": "2.0.33",
"pinia-auto-refs": "0.0.5",
"pinia-plugin-persist-uni": "1.2.0",
"vue": "3.3.11",
"vue-i18n": "^9.1.9"

执行yarn dev:mp-weixin,开发模式总是报错这个,升级uniapp相关依赖版本也没用

执行yarn build:mp-weixin就是可以的,不会报这个错

有没有大佬知道为什么?在线等,急

2024-03-15 11:41 负责人:无 分享
已邀请:
YUANRJ

YUANRJ

请提供下测试工程

l***@163.com

l***@163.com

同样的问题,怎么解决的?

  • 3***@qq.com

    解决了吗 遇到了同样的问题

    2024-06-22 14:06

  • l***@163.com

    回复 3***@qq.com: 重新把package.json整理了一下,去掉一些,加了"@vue/runtime-core": "^3.4.21",应该是版本兼容性问题

    2024-06-25 09:47

乔小猿

乔小猿

最后怎么解决的?

要回复问题请先登录注册