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
Env variables undefined with expo 48 #415
Comments
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/415 |
Test repo: https://github.com/goatandsheep/react-native-dotenv-expo-test To test
Tested and working
|
this is my start script: "start:npx-dev": "NODE_ENV=development&& npx expo start --clear" Other info on variants in expo: |
if you're using another way to configure your NODE_ENV you're going to have to figure it out yourself unless there's a bounty |
Hi,
After upgrading to expo 48, environment variables come undefined on the mobile app but work fine on react-native-web with expo.
I am using babel-loader 9.x.x with expo 48 due to expo 48 upgrading to webpack 5
I have tried
.env
.env.local
.env.production.local
and.env.production
all are returning me undefinedThe text was updated successfully, but these errors were encountered: