0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

型チェックツールFlowはMaterial-UIのバージョンアップに対応していない?

0
Posted at

型チェックツールのflowを走らせたら、@material-ui/coreのimportで失敗しました。

$ yarn run flow
$ flow
> Error 
> Cannot resolve module @material-ui/core. [cannot-resolve-module]

Material-UI公式にflowの対応状況について説明が書かれていて、リンク先のプロジェクトで型定義情報がメンテナンスされているとあります。
https://material-ui.com/guides/flow/

flow-typed

flow-typed is a repository of third-party library interface definitions for use with Flow. The community is maintaining the definitions under this project.

しかし、リンク先を見るとcore_v1.x.x/flow_v0.58.x-v0.88.xと書かれています。Material-UIのバージョンアップに追従していないようです。

少しググってみたら以下のページを発見して一応試してみましたが、@types/material-uiはTypeScriptの型情報なのでエラー解消しませんでした。
https://stackoverflow.com/questions/58941816/how-to-install-flow-types-for-material-ui-corev4-x-x

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?