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.

React Native でプロジェクトを開始した時に undefined is not a function が出る

Last updated at Posted at 2019-01-04

はじめに

react-native init で新しいプロジェクトを開始した際に undefined is not a function (... 'reactDevTools.connectToDevTools' ...) のエラーを検知しました。

既存のプロジェクトではこのエラーは発生せず、正常に動いていました。

対策

Github に issue としてあがっていました。
react-devtools 3.5.0 breaks new project

react-devtools-core をダウングレードします。

$ yarn add -D react-devtools-core@3.4.3

package.json に下記を定義します。


  "resolutions": {
    "react-devtools-core": "3.4.3"
  }

node_modulesyarn.lock を削除して、 yarn install をし直します。

私はこの方法で動くようになりました。

おわりに

Github の issue を見れば同じ悩みを抱えた人がいることが多いので、便利な時代だなぁとしみじみしています。
2019 年は英語力を伸ばして、問題の検索能力をあげたいなと思います。

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?