Bundle fails with Invalid expression encountered after supabase-js update
ExpoConfirmed fix
Expo SDK 56/57 Hermes v1, @supabase/supabase-js 2.90+
Error
Invalid expression encounteredCause
supabase-js 2.90 and later include a dynamic import(/* webpackIgnore */ OTEL_PKG) that the Hermes v1 compiler cannot bundle. A caret range drifts to it on any reinstall.
Fix
Pin supabase-js exactly (no caret) to the last version without the dynamic import:
JSON
"@supabase/supabase-js": "2.89.0"More Expo errors
- Dev client red screen: No script URL provided (launcher never appears)No script URL provided
- After upgrading to SDK 57, expo-font / expo-image / expo-asset config is missing
- SDK upgrade: export dies with SyntaxError after expo install --fixSyntaxError: ... Unable to determine event arguments for "onModeChange"
- expo-doctor wants TypeScript 6 but tsc reports hundreds of errors
- CI typecheck fails (or passes with a broken href) because .expo/types is missingerror TS2578: Unused '@ts-expect-error' directive