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

创建antdpro时,不选择antd@4会报错 #3997

Closed
detonateyin opened this issue Feb 26, 2020 · 3 comments
Closed

创建antdpro时,不选择antd@4会报错 #3997

detonateyin opened this issue Feb 26, 2020 · 3 comments

Comments

@detonateyin
Copy link

detonateyin commented Feb 26, 2020

What happens?

使用npm create umi时选择不用antd@4会报错

How To Reproduce

Steps to reproduce the behavior:

  1. npm create umi
  2. ? Select the boilerplate type-- Pick ant-design-pro
  3. ? 🤓 Which language do you want to use?-- Pick JavaScript
  4. ? 🦄 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)
@newmann
Copy link

newmann commented Feb 27, 2020

不管选不选,都报错

@detonateyin
Copy link
Author

不管选不选,都报错

对,提完issue就发现了🤣

@sorrycc
Copy link
Member

sorrycc commented Jan 17, 2021

It's inactive above 3 months, feel free to reopen if still have problems.

@sorrycc sorrycc closed this as completed Jan 17, 2021
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

3 participants