This was the result for me (though I didn't do this on a new project, but an existing one):
Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
options has an unknown property 'disableRefreshCheck'. These properties are valid:
object { exclude?, forceEnable?, include?, overlay?, useLegacyWDSSockets? }
Aaaand in 2023, not working (for me at least). Same results as with this article, it prevents the automatic refresh which loses state, but instead, nothing updates. Will keep looking.
I am here bc I can't get HMR working on Expo Go either 😥
When I do this, my iOS project gets errors like
no such file or directory "css-to-react-native"Which seems related to styled-components, but never had the issue before, and it immediately goes away when I revert.
I also couldn't make it work, both with
@expo/webpack-config 0.12.20and@expo/webpack-config 0.12.17.My save does trigger a new compilation, but the webpack message sent via websocket to the browser is
{"type": "invalid"}This was the result for me (though I didn't do this on a new project, but an existing one):
Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema.
This is broken by @expo/webpack-config 0.12.20. And not just fast refresh: no refreshes happen at all.
The issue was opaque, but after enough digging I found pinning that dependency to @0.12.17 restored fast refresh functionality.
Followup: I no longer experience this problem with @expo/webpack-config 0.12.25.
Great tutorial!
In my case to make it work, @younes0 change was required, and additional command to solve issue with this library:
yarn add -D react-refreshAfter that is working, Expo SDK 46.
it doesn't seem to work for me
ah nevermind. it worked after upgrading Expo
I was an expo fan, untill I started using Flutter :)
expo customize:webdoesn't appear to work anymore.It just says 'Exiting with no change...'
EXPO is my favorite
I could make it work in 2022 like this:
forums.expo.dev/t/enabling-fast-re...
Aaaand in 2023, not working (for me at least). Same results as with this article, it prevents the automatic refresh which loses state, but instead, nothing updates. Will keep looking.
I am here bc I can't get HMR working on Expo Go either 😥
Current not working. please update