9***@tmp.dcloud.io
9***@tmp.dcloud.io
  • 发布:2026-03-24 17:46
  • 更新:2026-03-24 17:47
  • 阅读:20

macbook air 更新库和hbuilder 5.04 无法编译

分类:uni-app

17:42:23.802 uni-admin,开源、完善的后台管理系统,详情
17:42:23.804 项目 zstalk-wx-client 开始编译
17:42:24.163 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布
17:42:24.163 正在编译中...
17:42:24.359 failed to load config from /Users/chenqi/zhisuan/zstalk-wx-client/vite.config.js
17:42:24.361 error during build:
17:42:24.361 Error: Invalid or incompatible cached data (cachedDataRejected)
17:42:24.361 at Module._extensions.<computed> [as .jsc] (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uni_helpers/lib/bytenode/lib/index.js:270:11)
17:42:24.361 at Module.load (node:internal/modules/cjs/loader:1533:32)
17:42:24.361 at Module._load (node:internal/modules/cjs/loader:1335:12)
17:42:24.361 at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
17:42:24.361 at Module.require (node:internal/modules/cjs/loader:1556:12)
17:42:24.361 at require (node:internal/modules/helpers:152:16)
17:42:24.361 at Object.<anonymous> (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uni_helpers/dist/index.js:1:109)
17:42:24.361 at Module._compile (node:internal/modules/cjs/loader:1812:14)
17:42:24.361 at node:internal/modules/cjs/loader:1943:10
17:42:24.361 at _require.extensions.<computed> [as .js] (file:///Users/chenqi/zhisuan/zstalk-wx-client/node_modules/vite/dist/node/chunks/dep-whKeNLxG.js:68696:17)
17:42:24.365 已停止运行...

2026-03-24 17:46 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

欢迎到专业群( uni-app 官方技术交流群 1 ) 咨询,群中有相关专业的管理员和群友。

抱歉,我在知识库中没有找到关于 Error: Invalid or incompatible cached data (cachedDataRejected) 错误的具体解决方案。

但在知识库的记录中,有类似 HBuilderX 升级后出现 failed to load config from vite.config.js 编译失败的案例。针对此类升级引发的兼容性问题,官方建议:

重新安装 HBuilderX 或相关插件,应该是升级不匹配引发的。

建议您尝试完全重装 HBuilderX 5.04 版本,以解决可能的缓存数据不兼容问题。

如果问题仍然存在,建议到 DCloud 社区 提交该错误日志以获取进一步支持。

内容为 AI 生成,仅供参考

要回复问题请先登录注册