-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
react-native run-android is giving error undefined is not a function (evaluating 'react DevTools.connect DevTools') #22865
Comments
+1 |
+1 |
run after when create project |
+1 |
1 similar comment
+1 |
Thanks, @Aayush-dev, #22863 This work for me! |
+1 |
|
{ Still error |
i resolved using below command |
+1 |
npm install --save-dev [email protected] → Works |
This will work or try to remove node_modules folder and re-install it using 'npm install --save' |
npm install --save-dev [email protected] then also run react-native run-android works perfectly for me |
Can anyone explain why installing react-devtools-core will fix the issue? |
thanks @yajan |
More info at #22863 |
Unfortunately didn't work :'( |
I am running... react-native: 0.57.8 I needed to add a resolution to
Then run...
|
If you're running the current version of If you're using yarn, you can tell it to flatten your dependency tree and then manually force it to resolve the older version for the single copy it installs.
|
+1 |
solved for me |
THAAANK YOU, BUDDY |
Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz
Memory: 1.44 GB / 7.91 GB
Binaries:
Yarn: 1.9.4 - C:\Users\Yajana\AppData\Roaming\npm\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Watchman: 4.9.0 - C:\Shortcut\watchman.EXE
IDEs:
Android Studio: Version 3.0.0.0 AI-171.4443003
Description
Getting error as
undefined is not a function (evaluating 'reactDevTools.connectToDevTools')
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\react-native\Libraries\Core\Devtools\setupDevtools.js:50:36
loadModuleImplementation
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:320:6
guardedLoadModule
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:214:36
metroRequire
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:136:24
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\react-native\Libraries\Core\InitializeCore.js:211:13
loadModuleImplementation
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:320:6
guardedLoadModule
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:207:45
metroRequire
C:\Users\Yajana\React-Native\fr-react-native\FrReactNative\node_modules\metro\src\lib\polyfills\require.js:136:24
global code
The text was updated successfully, but these errors were encountered: