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

FAQ: dev/build 卡死、慢、CPU 100% 等问题 #521

Closed
sorrycc opened this issue May 22, 2018 · 2 comments
Closed

FAQ: dev/build 卡死、慢、CPU 100% 等问题 #521

sorrycc opened this issue May 22, 2018 · 2 comments
Labels

Comments

@sorrycc
Copy link
Member

sorrycc commented May 22, 2018

先自行尝试以下方法

如果对你有效,请在下面反馈,以帮助更多的人。

问题 1

如遇以下问题:

  1. 卡好久才启动成功?

通过 TS_CONFIG_PATHS_PLUGIN=none 禁用 ts config path plugin 试试,在某些机器上有出现。

问题 2

如遇以下问题:

  • 启动卡在 91% 或者安装
  • import 一个不存在的依赖后 Compiling 卡住一会或好久(和 node_modules 下的模块数有关)

可尝试几个方法:

  1. 重装依赖,在 fix: import from lost dep will cause 100% cpu #526 里有尝试修复
  2. 换 yarn 试试

问题 3

如遇以下问题:

通过 HARD_SOURCE=none 禁用 hard-source-webpack-plugin 。

如无效,请回复并提供以下信息

  1. 操作系统,win/mac/linux
  2. umi 版本
  3. 具体问题描述
  4. 可重现的库(最好有)
@sorrycc sorrycc added the FAQ label May 22, 2018
@wuomzfx
Copy link
Contributor

wuomzfx commented May 22, 2018

  1. mac
  2. umi@1.3.3
  3. 当加载依赖包的路径不对时,就会卡死,爆CPU
  4. basement的h5应用模板

@sorrycc
Copy link
Member Author

sorrycc commented May 22, 2018

@wuomzfx 这是已知问题,hard-source-webpack-plugin 引入的,尽量别写错,不然就只能通过 HARD_SOURCE=none 关闭他了。

@sorrycc sorrycc changed the title dev/build 卡死、慢、CPU 100% 等问题集中反馈处理 FAQ: dev/build 卡死、慢、CPU 100% 等问题 May 23, 2018
@umijs umijs deleted a comment from sorrycc May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants