You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? Select the boilerplate type-- Pick ant-design-pro
? 🤓 Which language do you want to use?-- Pick JavaScript
? 🦄 Time to use better, faster and latest antd@4! -- Pick No
Context
Umi Version:v2.13.3
Node Version:v12.16.1
Create-umi Version:v0.20.1
Platform:macOs v10.14.6
Log
? Select the boilerplate type ant-design-pro
? 🤓 Which language do you want to use? JavaScript
? 🦄 Time to use better, faster and latest antd@4! No
events.js:288
throw er; // Unhandled 'error' event
^
TypeError: self.env.emit is not a function
at /Users/xxxx/.npm/_npx/15815/lib/node_modules/create-umi/node_modules/yeoman-generator/lib/index.js:653:22
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Emitted 'error' event on AntDesignProGenerator instance at:
at Immediate.<anonymous> (/Users/xxxx/.npm/_npx/15815/lib/node_modules/create-umi/node_modules/yeoman-generator/lib/index.js:668:20)
at processImmediate (internal/timers.js:456:21)
The text was updated successfully, but these errors were encountered:
What happens?
使用
npm create umi
时选择不用antd@4会报错How To Reproduce
Steps to reproduce the behavior:
npm create umi
? Select the boilerplate type
-- Pickant-design-pro
? 🤓 Which language do you want to use?
-- PickJavaScript
? 🦄 Time to use better, faster and latest antd@4!
-- PickNo
Context
Log
The text was updated successfully, but these errors were encountered: