lobehub / lobe-cli-toolbox

🪀 Lobe CLI Toolbox - AI CLI Toolbox, enhancing git commit and i18n workflow efficiency
MIT License
248 stars 44 forks source link

[Bug] SyntaxError: Unexpected token 'with' #121

Open huhan-123 opened 1 month ago

huhan-123 commented 1 month ago

💻 系统环境 | Operating System

macOS

🌐 CLI 版本 | CLI Version

pnpm install -g @lobehub/i18n-cli 命令下载的,应该是最新版本?

🐛 问题描述 | Bug Description

import cliBoxes from './boxes.json' with {type: 'json'}; ^^^^ SyntaxError: Unexpected token 'with' at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:118:18) at callTranslator (node:internal/modules/esm/loader:273:14) at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)

Node.js v20.8.1

🚦 期望结果 | Expected Behavior

不报错

📷 复现步骤 | Recurrence Steps

执行任意命令报错

📝 补充信息 | Additional Information

No response

lobehubbot commented 1 month ago

👀 @huhan-123

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。