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] #10828

Closed
4amramen opened this issue Jul 5, 2023 · 4 comments
Closed

🐛 [BUG] #10828

4amramen opened this issue Jul 5, 2023 · 4 comments

Comments

@4amramen
Copy link

4amramen commented Jul 5, 2023

🐛 bug 描述

Ant Design Pro with Umi3 no longer compiles. Upon yarn install, and yarn start, it fails with @babel/helper-compilation-targets: 'opera_mobile' is not a valid target. This has made our company's production app that we built off of the antd uim3 template unable to build anymore.

ERROR in ./src/components/index.md
Module build failed (from ./node_modules/@umijs/preset-dumi/lib/loader/index.js):
Error: [BABEL] /Users/ramesh/my-directory/myapp/src/components/index.tsx: @babel/helper-compilation-targets: 'opera_mobile' is not a valid target
- Did you mean 'opera'? (While processing: "/Users/my-directory/myapp/node_modules/@umijs/babel-preset-umi/app.js$0$0$39")

📷 复现步骤 | Recurrence steps

npm i @ant-design/pro-cli -g
pro create myapp

Select use umi@3

yarn install
yarn start

🏞 期望结果 | Expected results

Should have compiled and host at localhost:8000

💻 复现代码 | Recurrence code

Screen Shot 2023-07-04 at 6 09 37 PM

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

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

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

@github-actions github-actions bot closed this as completed Jul 5, 2023
@braveblack
Copy link

braveblack commented Jul 7, 2023

把src/components/index.md 内容清空就可以了

@whuwangyong
Copy link

把src/components/index.md 内容清空就可以了

有用,感谢。另,nodejs不要装太新的版本,我用的16.20.1。

@fengshenhai-0727
Copy link

清空md文件在哪写

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

4 participants