ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.13k stars 8.12k forks source link

🐛 [BUG] #11276

Closed leonkong closed 2 weeks ago

leonkong commented 2 weeks ago

🐛 bug 描述

通过最新的pro-cli创建脚手架npm安装运行后import出问题。 通过最新的pro-cli创建脚手架,选择simple,生成的工程,通过npm安装后,无任何问题,然后npm run dev,生成src/.umi目录后,src下部分文件比如src/Admin.tsx里部分import提示错误,删除后重新打开工程,则问题消失。而通过pnpm安装,则不会有这个问题。

📷 复现步骤 | Recurrence steps

1、 npm i @ant-design/pro-cli -g pro create myapp cd myapp npm install npm run dev 问题出现 rm -Rf node_modules src/.umi 重新打开IDE,问题消失 2、 npm i @ant-design/pro-cli -g pro create myapp cd myapp pnpm install npm run dev 不会出现问题

🏞 期望结果 | Expected results

💻 复现代码 | Recurrence code

© 版本信息

🚑 其他信息

image image
github-actions[bot] commented 2 weeks ago

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

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