David Ewins
Error library

SDK upgrade: export dies with SyntaxError after expo install --fix

ExpoConfirmed fix

Expo SDK 56/57

Error
SyntaxError: ... Unable to determine event arguments for "onModeChange"

Cause

expo install --fix only reconciles Expo's tracked package set. It left babel-preset-expo (and jest-expo, @types/jest) on the previous major, which cannot parse the new native component specs.

Fix

Bump them by hand to the SDK's major on every upgrade, e.g. npx expo install babel-preset-expo jest-expo, then re-run npx expo export --platform ios to confirm the bundle.

More Expo errors

Search all errors