-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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-devtools 3.5.0 breaks new project #22863
Comments
same problem. |
1 similar comment
same problem. |
Same issue on two different computers. Workaround without yarn on Windows? |
resolution did not work for me strangely enough, what i did is install this particular version as dev-dependency for the mean time |
still not working with the workarounds |
Thanks for reporting! (Please don't comment with "same here" comments; just thumbs-up the issue and subscribe to updates if you want.) |
Same issue. |
I am facing same problems, but when I am trying to run the previous projects that I have created, they all run fine. |
After i upgrade react native 0.54.x -> 0.57.8, i got this problem too. In setupDevtools.js
For my temp solution..
|
I would recommend rolling back to [email protected]. I was able to do this and it worked.
I will note that this happened on a brand-new 0.57.7 project also. |
God bless you |
Same issues here. Reverting to [email protected] as @jamonholmgren recommended got me back up and running. Thanks! |
the solution not work for me. I use version 0.57.8 |
done npm install --save-dev [email protected], |
In android I just disabled JS Dev Mode in Dev settings then error disappears. This is temporary solution only. |
It worked on both android iOS |
@svjkumar how to disabled JS Dev Mode in Dev settings? can you please help me. I am new in react native. |
Shake your device and then you'll see the develop menu, the last one is Dev settings. BTW, I tried in [email protected], but not work |
@jamonholmgren the solution is not worked for me |
@minhphung210 Thanks. After 3 hours of struggle, finally I can see welcome text on the screen. |
its working in android but its not working in ios for me. |
@timesina You need to install the dependency in the devDependecies, i.e., use npm install with |
Thanks @jordenchang55 . Its working for me in [email protected]. Just run your project once again. |
Same issue. But I use react-devtools-core@3.4.2 not 3.4.3 to make it work. {
"name": "MyApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.6.1",
"react-native": "0.57.7"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.50.0",
"react-devtools-core": "^3.4.2",
"react-test-renderer": "16.6.1"
},
"jest": {
"preset": "react-native"
}
}
|
not working the heck |
@priyesh321 => @nvmanh and @zhima |
thanks it works for me in android and ios also. |
there is one solution to this Within your app in the Android Emulator press Command + M on OSX or Ctrl + M on Linux and Windows. then go to dev settings uncheck JD DEV MODE The first option worked for me |
thanks its works for me |
@sunnylqm thanks |
npm install --save-dev [email protected] it works. |
For yarn developer 👍 "resolutions": { Thanks. |
to get rid of this in the first place I decided to create a downgraded react-native version which is 0.55 |
We are still getting the issue after downgrading Our environment:
Also tried setting We can't downgrade our react-native version to |
Even after downgrading in "devDependencies" I could still find newer versions of "react-devtools-core" in other modules. I solved it with yarn by downgrading and changing the version of "react-devtools-core" in all dependent modules:
Important: The glob-pattern in "resolutions"! After deleting the "node_modules" folder and the "yarn.lock" file and running (with react-native 0.57.8) |
Does anyone have an idea of what exactly is going wrong here ?
|
@Kouznetsov The reason I already described in title, that is, caused by the new version of And 1) the npm package can update silently every time you install unless it is locked to a specified version. 2) Even you lock your dependencies, do not forget your dependencies can also have their dependencies which may not have locked versions. And that is exactly what is going wrong right here right now. ( |
Tried all solutions from this thread but I am still having issue with ios. Attached is my package.json.
Any idea? |
This fixed it for me running [email protected]. |
For me it worked only using yarn, otherwise with npm the error remained me. |
Hi all 👋 Sorry for the trouble 😦 I believe this was something I broke when upgrading the React DevTools project's Babel and Webpack versions in facebook/react-devtools#1235, and we're just now encountering it because we haven't released the I just published |
Now it works fine for me creating a new project. |
Yay! Thanks for verifying, @davideddr ! |
I'm going to mark this issue as closed for now then. Let's re-open if others are still experiencing problems! |
I can also verify that the issue is gone. Thank you for the quick fix @bvaughn ! |
@bvaughn yep works for me as well. (Didn't work before) |
(thanks @bvaughn for the quick fix!) |
@bvaughn |
You shouldn't have to do this anymore, remove |
@jasonroyle |
reactDevTools.connectToDevTools is not a function
Description
Reproducible Demo
Just init a new project and you'll hit this issue
Workaround
Put the following in your
package.json
and runyarn
(not npm, which does not support "resolutions") to force install the previous version:Then close the current packager window, run
yarn start --reset-cache
.Since the compiled js file changed a lot and we actually got an empty object in setupDevtools.js, so I suspect that something went wrong with build configuration, maybe related to facebook/react-devtools@28d36a2
cc @bvaughn @kelset @hramos
The text was updated successfully, but these errors were encountered: