Skip to content
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

Environment variables are not getting updated #254

Closed
rahuldahal opened this issue Nov 26, 2021 · 3 comments
Closed

Environment variables are not getting updated #254

rahuldahal opened this issue Nov 26, 2021 · 3 comments
Assignees

Comments

@rahuldahal
Copy link

I am using expo ~43.0.0
The package reads the old value even if the server is re-started.
Tried all the solutions described in the similar issue. Didn't help.

Workaround (not ideal)
If I change the App.js file(I've imported env. variables here), the variables do get updated.
But, why should we change the file?

I'm not sure if this is the issue with react-native-dotenv package or, expo.

@github-actions
Copy link

Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/254

@Coci0AlexMeew
Copy link

Coci0AlexMeew commented Nov 26, 2021

I just had a similar issue. I ran the following cmd to fix it:

rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-map-*

@goatandsheep
Copy link
Owner

thank you @Coci0AlexMeew ! I have also reopened #75 so I'm marking this as a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants