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

✔ Parse url and args ⠋ Clone git repo 一直转圈 #35

Open
oraclexudehua opened this issue Jun 17, 2019 · 7 comments
Open

✔ Parse url and args ⠋ Clone git repo 一直转圈 #35

oraclexudehua opened this issue Jun 17, 2019 · 7 comments

Comments

@oraclexudehua
Copy link

Parse url and args ⠋ Clone git repo 一直转圈 ,转很长时间

@chenshuai2144
Copy link
Contributor

这个时候是在从 github clone 代码。你测试一下 github 的速度

@niexq
Copy link

niexq commented Jun 25, 2019

image

我本地也同样现象,Clone git repo 一直转圈,等很久后报错(见上图),github测试连接正常,@chenshuai2144

@chenshuai2144
Copy link
Contributor

这个就是网络的问题,你人工执行一下 clone 呢

@niexq
Copy link

niexq commented Jun 25, 2019

手动执行clone,确实报同样的错。
image

@niexq
Copy link

niexq commented Jun 25, 2019

这个就是网络的问题,你人工执行一下 clone 呢

谢谢!
目前解决措施(先clone pro-blocks到本地):
git clone https://github.com/ant-design/pro-blocks.git
再操作:
umi block add /Users/fg123456/work/pro-blocks-master/UserLogin --path=/user/login

成功!

但是,现在有个疑问,生成的文件都是tsx的,我们现在项目用的是js,这个脚本有对应的配置参数吗?

@chenshuai2144
Copy link
Contributor

@niexq
Copy link

niexq commented Jun 25, 2019

https://umijs.org/zh/guide/block.html#%E4%BD%BF%E7%94%A8%E5%8C%BA%E5%9D%97

看到了,谢谢!
umi block add ***/UserLogin --js

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