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

umi3无法启动 #4005

Closed
ywy94ywy opened this issue Feb 27, 2020 · 2 comments
Closed

umi3无法启动 #4005

ywy94ywy opened this issue Feb 27, 2020 · 2 comments

Comments

@ywy94ywy
Copy link

①yarn create @umijs/umi-app
②yarn
③yarn start
U1{V{)5}_6_TY@~%`%Z60J2

@laixstx
Copy link

laixstx commented Mar 2, 2020

image
将 ./src/.umi/core/umiExports.ts 临时文件中的
export * from '../plugin-initial-state\exports';
改成
export * from '../plugin-initial-state/exports';
即可启动。

But,由于是临时文件,所以每次启动都会重新生成,所以每次都得改。

不止如此,3.0.0 版本 src/.umi/plugin-initial-state/exports.ts 还有这两个错误:

  1. 不是 import { InitialState as InitialStateType } from '../plugin-initial-state\models\initialState'; ,应该是 import { InitialState as InitialStateType } from '../plugin-initial-state/models/initialState'; ,导致 import 错误;
  2. src/.umi/plugin-initial-state/models/initialState.ts 中没有 export InitialState 出来,所以这个文件的代码基本是全错的。
    image

@laixstx
Copy link

laixstx commented Mar 2, 2020

升级到 3.0.1,这个问题就解决了

@sorrycc sorrycc closed this as completed Mar 3, 2020
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