-
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
0.60.0 - 0.60.3 - Error screen on fresh started app (RefreshReg) #25622
Comments
@NicholasBertazzon You can provide a little more information about the error, so that it can be easier to solve it. Maybe a screenshot or a repo |
Of course, done. |
@ecreeth @kelset |
Uhm that sounds super weird but at the same time, it seems to be suggesting that it's a problem related to caching :/ When there is Android involved sometimes I even try different simulators because there are some derived datas that are persisted and only way is to do a clean slate. Also, when you start metro can you try to pass the flag |
That's what I meant when I wrote "reset cache" :) |
oh ok - then I'd suggest you clean all the caches 😂
|
This comment has been minimized.
This comment has been minimized.
Hello, after a lot of hours and restart, and comparing with a new application started from scratch with same dependencies added in package.json which working, i think it is the file "package-lock.json". Maybe this can help some people. |
I downgraded v0.55 includes |
Nice catch @AndrewJack 👍 Should we fix/lock dep in the dep to it? react-native/template/package.json Line 19 in 0190c9c
I can't remember how ^ behaves with minor releases
|
@kelset This may also happen to people installing fresh projects or projects without lock files. Maybe a mention in the release notes too. Thanks for your help 👍 |
I have installed As a result, anyway I got an error: I tried everything
|
@valery-lavrik remove the Then check your lock file to verify you are using v0.54.1 of metro-reaction-native-babel-preset |
did not help.
but the error still remained. |
@kelset it looks like |
yeah I'll lock all the deps to 0.54.1 for the 0.60-branch. Thanks for helping out 👍 |
upgrading to |
I'm also getting this issue at Ubuntu enviroment. My project is currently using:
When i try to upgrade react-native to >= 0.60.0 i get the same error message. I've already tried to reset all caches, delete android and ios folder and re-create them with |
Found that |
Yes, we can't lower the version of the |
react-native start react-native-cli: 2.0.1 |
@mayursarode4 see #25650 (comment) If you're on node v12.5 or later, downgrading to v12.4 will fix it. |
Done downgrading the node to v12.4.0, still same issue, still its getting stuck/hang. |
I just finished upgrading these devDependencies and got the exact same error... Maybe this will help narrow it down?
|
@kelset am facing this issue on Ubuntu, started 5 days ago after updating "devDependencies": { Resetting cache is not working, nor is downgrading metro-react-native-babel-preset to 0.54.1 |
everything works for me at the moment. try to do everything in order: |
I did what @valery-lavrik said and not working, I tried to create a new project and copy the code into the new one react-native init test still getting this error: Can't find variable package.json: Emulating on external device Samsung npm outdated @react-native-community/eslint-config 0.0.3 → 0.0.5 still getting the same error |
In My Case. I am using external android for development. Hope it will resolve your issue too. |
@AndrewJack Thank you so much, it works for me. |
Created another new project, and copied the codes and installed the packages to the new one, now it works, the default version of metro-react-native-babel-preset has been changed to 0.54.1, |
I hope the issue might be with your package manager, please try updating npm package manager to the latest. |
In my case, this worked too. |
Only full cleanup (including |
If someone tried all suggestions with no result - the last thing is to recreate your project in another directory by cloning it from your repo. Only this helped me |
It seems that you still need to pin your dependency to the version described above: #25622 (comment) Because it seems that there is an issue with the react-native init command that ignores the version of metro-* specified in the template. |
I'm getting these errors too and i've intalled navigation stack and drawer! |
I've encountered this error once more just after upgrading react-navigation from 3.x.x to 4.0.3. And installing react-navigation-drawer and stack didn't help me. I don't know, it seems like npm caches packeges in such a way that |
I had the same problem, and I solved it by removing my repo and cloning it again. Then npm install, and react-native run-android. I tried all other solutions and none worked for me. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Hi,$RefreshReg$
I tried to start a fresh 0.60.3 react-native app and I got this error:
Can't find variable:
I'm developing under Windows 10, already tried to clean Android and reset cache.
Thanks.
React Native version: 0.60.3, but it also happens on 0.60.0, not tested on < 0.60
Steps To Reproduce
Screenshots:
The text was updated successfully, but these errors were encountered: