https://github.com/josiahsrc/expo-router-context-error
https://github.com/josiahsrc/expo-router-context-error
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/josiahsrc/expo-router-context-error
- Owner: josiahsrc
- Created: 2024-11-18T01:19:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T01:24:04.000Z (over 1 year ago)
- Last Synced: 2025-01-20T06:24:37.083Z (over 1 year ago)
- Language: TypeScript
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expo env file error
Steps to reproduce
1. npm ci
2. Run expo normally and load the app onto your phone.
```
npx expo start -c
```
3. Run expo under a test environment and load the app onto your phone.
```
NODE_ENV=test npx expo start -c
```
Then note the error
```sh
iOS Bundling failed 5165ms node_modules/expo-router/entry.js (1004 modules)
ERROR node_modules/expo-router/_ctx.ios.js: node_modules/expo-router/_ctx.ios.js:Invalid call at line 2: process.env.EXPO_ROUTER_APP_ROOT
First argument of `require.context` should be a string denoting the directory to require.
```