LoginSignup
2
1

More than 5 years have passed since last update.

flowが死んでるときに試すこと

Last updated at Posted at 2018-04-15

flowが反応しなくなることがよくあるので試すことを書いた

状態の確認

flowがエディタ上で反応するか

const foo: number = 'bar'

上のような、明らかにエラーが出る代入を書いてみる。

flowサーバーが動いているか

yarn run flow

flowサーバーは動いているがエディタが反応しない時は

エディタをリフレッシュする

vscodeであれば、再読込すればOK

flowサーバーが起動しない場合

The flow server is not responding (0 retries remaining): /
Out of retries, exiting!
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

こんな感じのメッセージが出る。

globalのバージョンとcurrent projectとのバージョンに差分がないか確認する

yarn global lsの結果とpackage.jsonを見比べる。
差分がある場合は合わせるか、globalを消す

最終手段:再インストール

自分はたまになる。

yarn remove flow

yarn add -D flow
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1