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

v4 src/layouts 目录 没了 ??? 造成 npm run fetch:blocks 后config.ts 配置错误 #6504

Closed
wenJonSnow opened this issue Apr 29, 2020 · 9 comments · Fixed by umijs/create-umi#108

Comments

@wenJonSnow
Copy link

v4 src/layouts 目录 没了 ??? 造成 npm run fetch:blocks 后config.ts 配置错误,最终导致无法启动项目

image

@tonyxinxin
Copy link

一样的问题,还以为自己操作错了,搞了3次~~~浪费时间

@xiaohuoni
Copy link
Member

xiaohuoni commented Apr 30, 2020

@yidafu
Copy link

yidafu commented Apr 30, 2020

I found that src/ doesn't have layout/ dir if select Be the first to experience the new umi@3 when
generate from boilerplate. @xiaohuoni

Also, there isn't a branch called umi@3.

Update:

When select Be the first to experience the new umi@3 , create-umi will clone branch v5. But, branch v5 doesn't hava layout.

antd-pro-branch-v5

https://github.com/ant-design/ant-design-pro/tree/master/src/layouts 是有的?

Not master branch.

@xiaohuoni
Copy link
Member

xiaohuoni commented Apr 30, 2020

@chenshuai2144 感觉是脚手架提供太早了。这边还没同步完成。v5还没发布,脚手架就下载了v5的代码。

@afc163
Copy link
Member

afc163 commented Apr 30, 2020

@chenshuai2144 回滚吧,搞个 next 版本。Pro 的兼容性一定要保障好。

PS:之前的 umi2 区块迁移就没考虑好,老用户已经没法用了。

@xiaohuoni
Copy link
Member

直接拉主分支代码,初始化项目就好。

@chenshuai2144
Copy link
Collaborator

我默认选的都是 false,还有一堆人用,我直接删掉吧

@chenshuai2144
Copy link
Collaborator

删除 umi@3 的选项,需要的人可以

yarn create umi --branch v5

@afc163
Copy link
Member

afc163 commented Apr 30, 2020

等我们都准备好了再上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants