Skip to content
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] #10897

Closed
Coder-p2c opened this issue Aug 18, 2023 · 5 comments
Closed

🐛 [BUG] #10897

Coder-p2c opened this issue Aug 18, 2023 · 5 comments

Comments

@Coder-p2c
Copy link

🐛 bug 描述

const { info } = openAPIData;
^
TypeError: Cannot destructure property 'info' of 'openAPIData' as it is null.

在初始化后,进行了去国际化操作;然后使用openapi插件生成前端接口代码,报错

📷 复现步骤 | Recurrence steps

初始化项目模板,就只进行了移除国际化操作

🏞 期望结果 | Expected results

报错了没有在seevices目录下没有生成相应的接口

💻 复现代码 | Recurrence code

© 版本信息

  • Ant Design Pro 版本: [5.2.2]
  • umi 版本 4
  • 浏览器环境 edge
  • 开发环境 [windows]

🚑 其他信息

@github-actions
Copy link

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

@Shuxinzsx
Copy link

您好,请问解决了吗?

@Seacolour
Copy link

今天刚碰到这个问题,因为后端项目没启动,后端项目运行再openAPI就行

@ANCB520
Copy link

ANCB520 commented May 11, 2024

先试试你的json链接浏览器中不能不打开,路径要swagger.json结尾,比如:http://127.0.0.1:5133/swagger/v1/swagger.json,

@XieMingH
Copy link

检查schemaPath路径对了没,我也是遇到这个问题,排查发现是因为路径

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants