Expo Router in Monorepo crashes and "fast refresh" not working #263
Replies: 2 comments 3 replies
-
Did you find a solution to this? I tried to follow the documentation and find that the fast refresh using Typescript with Expo Router doesn't work and it could be related. I am on version 49 of the SDK though... |
Beta Was this translation helpful? Give feedback.
2 replies
-
Did anyone find a solution to this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following repo for demo purposes here: https://github.com/ShaneKeney/expo-router-monorepo-bug .
This was derived and slimmed down from https://github.com/byCedric/expo-monorepo-example.
Background:
I have two app project templates in the Monorepo:
expo-router-template
andexpo-monorepo-example
.The issue I am experiencing is two-fold:
First, "fast refresh" does not work when
expo-router-template
project is present in the repo. If you delete the Router template project inapps
directory, the fast refresh will start working again forexpo-monorepo-example
. As soon as you add back theexpo-router-template
, fast refresh stops working.Additionally, if you use
app.config.js
instead ofapp.json
for theexpo-router-template
then the app will crash in development when you attempt to bring up the Developer Menu via 3 finger tap and/or "Shake to Refresh".Beta Was this translation helpful? Give feedback.
All reactions