-
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
Problem with scheduler/tracing
#23781
Comments
@deecewan do you see the issue on both iOS and Android? |
@dulmandakh as far as i remember, yes. I mostly work with it on iOS. I managed to get it fixed, but I have no idea what steps I took to get it to fix. |
Hey @deecewan, glad to hear this is fixed for you This is a React error from a mismatch between the renderer and scheduler when using the profiler - my best guess is that you were using the react-dom profiler before the update, without the scheduler set up, and after the upgrade this switched to an error The fix was probably to add something like See here for more info |
@rickhanlonii this just happened to me again. I have not used the profiler at all (I probably should, but that's a different story). I managed to fix it this time by closing the simulator, clearing the RN cache, and starting again. I am still really unsure how or why this comes up. As I mentioned, I've never once used the profiling scheduler. The |
Same situation here. Using Expo if that makes any difference. I've tried all sorts of things, clearing cache on all levels, restarting everything, nothing seems to help. I'm a bit lost here. @deecewan any idea how you fixed that? |
Same here, why has this issue been closed without a solution. @deecewan I'd like to know as well how you managed to fix it. |
I have no idea how I fixed it - I imagine uninstalling the App from the iOS simulator, clearing the cache, removing node_modules. I'm really not sure. I've now upgraded, and haven't seen the error for a while. |
I found a problem and a solution. I use So basically the solution is to align the bundler and renderer to use the same |
Any update on this?, I'm not using any and tried almost everything I'm using
|
How do we do that? In my case, the error appeared when I set the NODE_ENV of my .env to production, but setting it back to development doesn't do anything anymore. I tried clearning cache and re-installing node_modules to not avail. |
🐛 Bug Report
I have started to get an error from
ReactNativeRenderer-dev.js
.To Reproduce
I have really no idea what caused this. I have tried everything. I'm running only one version of scheduler (as confirmed by
yarn.lock
). I can't see anywhere that the profiling schedule would be enabled, looking through the compiled source.enableSchedulerTracing
is set totrue
inReactNativeRenderer-dev.js
, which causes the invariant to run, and fails.This happens straight away when the application starts. I have seen it before, but it fixed with remove
node_modules
and re-installing.I have wiped + reinstalled (after clearing the Yarn cache). Still broken. I am so so lost. I've spent about 5 solid hours now trying to fix this.
Expected Behavior
The app doesn't die when starting.
Environment
The text was updated successfully, but these errors were encountered: