Closed wachunei closed 7 years ago
Figured it out: had to make any changes on the code too for it to update.
@wachunei running the packager with --reset-cache
will do the trick as well.
It seems like if you are using detached expo project you can also do this
exp --tunnel --clear
that will remove cache on server starts
@wachunei same trick works for me as well. i tried a lot of tries to fix but your approach fixed my issues. thanks you very much.
For me tests were not picking up changes in .env when calling yarn test
. I resolved it by calling yarn test --clearCache
.
@wachunei running the packager with
--reset-cache
will do the trick as well.
where should i put --clear-cache
--reset-cache worked for me.
@lPaths --reset-cache should be used when you start the React Native packager:
$ node node_modules/react-native/local-cli/cli.js start --reset-cache
or
$ react-native start --reset-cache
If you start it from your package.json scripts:
{
...
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
...
}
$ yarn start --reset-cache
Manually edit the file importing react-native-dotenv by either adding an empty line or whitespace will work.
Variables defined in
.env
are not updating.I've tried:
Ctrl + C; yarn start
)react-native run-X
again😞 Don't know what else to try