You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to load envs/.env.local with dotenv and set the Google Maps API key in the environment variable to build, but when I launch the built app, I get an error that there is no API key. When the API key is written directly in the 'app.config.ts' file, the app launches without any errors.
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that native modules use compatible support package versions for installed Expo SDK
Didn't find any issues with the project!
Error output
Reproducible demo or steps to reproduce from a blank project
use MapView from react-native-maps and set provider props to PROVIDER_GOOGLE
use this eas.json, app.json and app.config.ts eas.json
hellososhi
changed the title
Cannot build locally with Google Maps SDK API key
Cannot build locally with setting Google Maps SDK API key to environment variable
Nov 3, 2023
I don't fully know your whole setup, but it seems like the .env.local env values weren't loaded at the time of performing the build. It seems like a project-specific issue. Good to hear it started to work!
Build/Submit details page URL
No response
Summary
I want to load
envs/.env.local
with dotenv and set the Google Maps API key in the environment variable to build, but when I launch the built app, I get an error that there is no API key. When the API key is written directly in the 'app.config.ts' file, the app launches without any errors.Managed or bare?
Managed
Environment
npx expo-env-info
npx expo-doctor
Error output
Reproducible demo or steps to reproduce from a blank project
MapView
from react-native-maps and setprovider
props toPROVIDER_GOOGLE
eas.json
,app.json
andapp.config.ts
eas.json
app.json
app.config.ts
The text was updated successfully, but these errors were encountered: