David Ewins
Error library

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 encountered

Cause

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

Search all errors