🐛 [BUG]macos环境,创建项目后,访问报错 TypeError: Cannot read properties of undefned (reading ' context')
dinghongfei opened this issue · 1 comments
dinghongfei commented
🐛 bug 描述
使用pro创建项目后,项目启动正常,浏览器访问后,报报错
📷 复现步骤 | Recurrence steps
根据报错信息是因为使用 antd-style时报错,但此错误只在macos电脑中出现,在win同样版本的node环境下构建项目,项目是正常的
🏞 期望结果 | Expected results
服务访问正常
💻 复现代码 | Recurrence code
© 版本信息
- Ant Design Pro 6.0.6
- umi 4.1.5
- 浏览器环境 chrome
- 开发环境 macos
🚑 其他信息
dinghongfei commented
是电脑node环境的问题,最开始是node直接安装到电脑,后改为nvm管理,但是安装nvm前没有把电脑已有的环境清理干净