Closed eyalella closed 5 years ago
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.
The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info
on a project using the latest release.
The build is really unstable and I can't even document the problem since I'm getting different issues on each build. I'll try to come to a stable env and reopen a ticket with correct data
Hi @eyalella My app also crashes on Launch Screen with the same errors/output. Any luck on a solution?! Thanks!
Well after many attempts I was finally able to make it work by doing this:
This get me to a point where I'm still stuck on splash screen but if I build using Xcode I see this error:
undefined is not a function (near '...window.addEventListener...')
I found the culprit is /node_modules/schedule
which is trying top access the window...
# schedule.development.js
window.addEventListener('message', idleTick, false);
I added
window.addEventListener && window.addEventListener('message', idleTick, false);
And it works!!
The only problem now is that it's a ugly hack 👎
So I'm trying to understand why schedule even there. I found it's required by react-dom
which is required by mobx-react
.
I have no idea why all this s**t started when I upgraded Xcode but this is where I'm now. Just need to find a way to not use react-dom
Thanks for the quick reply. I'm getting these errors in Visual Studio, using Xamarin.iOS. Stuck & going nowhere for a few days because of these errors / upgrades. Downloaded Xcode 9.4.1, will see what I can figure out!
FYI, for me changing
import { observer, inject } from "mobx-react";
to
import { observer, inject } from "mobx-react/native";
Solved the react-dom
issue
Environment
Description
We have a working app in production. I upgraded Xcode locally (from
9.4.1
to10
) and the build broke.Expected:
Everything to work as before
Result:
The app is stuck on the launch screen and I'm not getting any errors in the build log when I build using node. I have been trying to make it work for a few days now but nothing seems to fix it.
What I tried:
Didn't work.
9.4.1
.This worked for a while but stopped working after I deleted the app from the simulator and run the build command again.
10
.Still nothing
Every solution combination doesn't seem to work and i'm lost. I can't provide a reproducible demo since this is a private app but I can paste relevant snippets if needed.
General info
I'm using CocoaPods with the following Podfile:
When building the app from the command line using this line:
I get:
When I build using Xcode I get the following output with errors:
Reproducible Demo
None
Any help will be much appreciated! Thanks