yarn + expo-router breaks hot refresh
frankcalise opened this issue · comments
Overview
Hot refresh is broken when using yarn
as the package manager and expo-router
for navigation.
Steps to reproduce
- init a project via
create-expo-stack ces-hotrefresh --yarn --exporouter --stylesheet --stack
- make changes to a screen and save
observe the updates are not made until the app is reloaded
Other notes
- With
react-navigation
, hot reload is working withyarn
- These configurations also work with
expo-router
just fine:create-expo-stack ces-hotrefresh --bun --exporouter --stylesheet --stack
create-expo-stack ces-hotrefresh --npm --exporouter --stylesheet --stack
This is related to the resolutions specified in package.json
. If you don't lock metro to 0.76.0 things seem to work