1***@163.com
1***@163.com
  • 发布:2025-05-21 15:11
  • 更新:2025-05-21 16:19
  • 阅读:119

vue3 脚手架打包问题

分类:uni-app

vue3 vite 指令生成的项目 如果配置国际化 pnpm 没办法 识别 vue-i18n 如果用 yarn 初始化可以识别 但是 在苹果端 安装依赖的时候会报错

error @esbuild/darwin-x64@0.25.4: The CPU architecture "arm64" is incompatible with this module.
error Found incompatible module.

2025-05-21 15:11 负责人:无 分享
已邀请:
DCloud_UNI_JBB

DCloud_UNI_JBB

您好,麻烦发下报错的信息和复现报错的步骤

  • 1***@163.com (作者)

    你好 是用的yarn mac 电脑 在打包app 的时候报错 需要 x64 我安装过后 在通过yarn 安装其他的插件的时候报错 error @esbuild/darwin-x64@0.25.4: The CPU architecture "arm64" is incompatible with this module.

    你可以 先通过yarn 安装一个 yarn add @dcloudio/uts-darwin-x64 --ignore-platform 然后在 随便 安装一个插件 比如 yarn add eslint --dev

    2025-05-21 15:23

  • DCloud_UNI_JBB

    回复 1***@163.com: 能发个复现demo吗

    2025-05-21 15:27

  • 1***@163.com (作者)

    回复 DCloud_UNI_JBB: 怎么给你呢

    2025-05-21 15:27

DCloud_UNI_JBB

DCloud_UNI_JBB

评论区发zip压缩文件

  • 1***@163.com (作者)

    我发私聊给你了 评论区的有大小限制

    2025-05-21 15:33

1***@163.com

1***@163.com (作者)

dome 包

要回复问题请先登录注册