ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!

Home Page:https://pro.ant.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛 [BUG]macos下,创建项目后报错,TypeError: Cannot read properties of undefned (reading ' context')

dinghongfei opened this issue · comments

🐛 bug 描述

使用pro创建项目后,项目启动正常,浏览器访问后,报报错

📷 复现步骤 | Recurrence steps

  1. pro create my-app
  2. cd my-app
  3. cnpm install
  4. npm run start
  5. 浏览器访问,服务报错
    eea383f5c467b3c924a328d897050ec
    image

根据报错信息是因为使用 antd-style时报错,但此错误只在macos电脑中出现,在win同样版本的node环境下构建项目,项目是正常的

🏞 期望结果 | Expected results

服务访问正常

💻 复现代码 | Recurrence code

© 版本信息

  • Ant Design Pro 6.0.6
  • umi 4.1.5
  • 浏览器环境 chrome
  • 开发环境 macos

🚑 其他信息

eea383f5c467b3c924a328d897050ec
image

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

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