-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛[BUG] 生成services,报Error: not support Intl or zh-CN language #8217
Labels
Comments
这个拼音库看起来还是不够强大 |
有解决方案吗? |
升级一下node,或者用 |
有版本推荐,或者升级最新版本吗 |
node@14 最合适了 |
还是换个库吧,centos上 |
同样遇到这个问题,node 10.24.1。没法升级node,牵扯太多了。 |
nvm 安装多个版本 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 bug 描述
当前最新下载的最新pro,填上openapi数组配置后生成,控制台报错Error: not support Intl or zh-CN language
📷 复现步骤
当前最新下载的最新pro,填上openapi数组配置后生成
🏞 期望结果
正常运行
💻 报错信息
[openAPI]: � 将 Swagger 转化为 openAPI
(node:19344) UnhandledPromiseRejectionWarning: Error: not support Intl or zh-CN language.
at parse (D:\CYProjects\cmii-ufb\node_modules\tiny-pinyin\dist\core.js:126:11)
at Object.convertToPinyin (D:\CYProjects\cmii-ufb\node_modules\tiny-pinyin\dist\core.js:139:12)
at resolveTypeName (D:\CYProjects\cmii-ufb\node_modules@umijs\openapi\dist\serviceGenerator.js:32:34)
at D:\CYProjects\cmii-ufb\node_modules@umijs\openapi\dist\serviceGenerator.js:182:33
at Array.forEach ()
at D:\CYProjects\cmii-ufb\node_modules@umijs\openapi\dist\serviceGenerator.js:181:22
at Array.forEach ()
at D:\CYProjects\cmii-ufb\node_modules@umijs\openapi\dist\serviceGenerator.js:171:55
at Array.forEach ()
at new ServiceGenerator (D:\CYProjects\cmii-ufb\node_modules@umijs\openapi\dist\serviceGenerator.js:169:46)
(node:19344) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: