简体   繁体   English

错误:调试失败。 运行 formatjs 提取时输出生成失败

[英]Error: Debug Failure. Output generation failed when running formatjs extract

When running formatjs extract this is what we got.当运行 formatjs extract 时,这就是我们得到的。 From the stack trace it seems that the issue is from formatjs themselves.从堆栈跟踪看来,问题出在 formatjs 本身。 Feel like I am stuck on what the issue is here.感觉我被困在这里的问题是什么。

$ formatjs extract './src/**/*.{js,ts,tsx}' --out-file './src/i18n/messages/messages.json' --extract-from-format-message-call --throws
Error: Debug Failure. Output generation failed
    at Object.transpileModule (/Users/.../node_modules/@formatjs/cli/node_modules/typescript/lib/typescript.js:126894:29)
    at processFile (/Users/.../node_modules/@formatjs/cli/src/extract.js:104:39)
    at /Users/.../node_modules/@formatjs/cli/src/extract.js:163:59
    at step (/Users/.../node_modules/@formatjs/cli/src/extract.js:44:23)
    at Object.next (/Users/.../node_modules/@formatjs/cli/src/extract.js:25:53)
    at fulfilled (/Users/.../node_modules/@formatjs/cli/src/extract.js:16:58)
error Command failed with exit code 1.

You might be processing a file that needs to be ignored using --ignore .您可能正在处理需要使用--ignore忽略的文件。 Can you upgrade to the latest version and re-run your command?您可以升级到最新版本并重新运行您的命令吗? Long added the filename in this commit https://github.com/formatjs/formatjs/commit/ceb0bf8a58c13fe6811bc35191018ee1c431484a Long 在此提交中添加了文件名https://github.com/formatjs/formatjs/commit/ceb0bf8a58c13fe6811bc35191018ee1c431484a

Reference: https://github.com/formatjs/formatjs/issues/2044参考: https : //github.com/formatjs/formatjs/issues/2044

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM