WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

Expo SDK 54 with native + web: `TypeError: Cannot assign to read-only property 'NONE'` on native

Open SummitCollie opened this issue 3 weeks ago • 0 comments

reddit thread on this issue - only other discussion I've found on this. The only suggestion offered there is to stop using @babel/plugin-transform-class-properties, which does get rid of the error, but that breaks WatermelonDB in the browser.

On Expo SDK 54, after following the installation instructions for both native and web, but before adding any schemas or models (and after adding them (but also before)), this error appears in console & LogBox during Android app startup:

Image

The database still appears to work after dismissing the error, but I haven't tested it extensively.

Downgrading to Expo 53 resolves the issue. Loki works fine in the browser regardless of SDK 53/54.

Note: I'm running WMDB with this plugin from LovesWorking which auto-configures JSI for Android, not sure whether it's related: watermelondb-expo-plugin-sdk-52-plus

Possible this issue belongs on that LovesWorking repo instead, or even the Expo/babel repos, in which case, sorry. But regardless, as a tangent, would be nice if the JSI stuff had first-party support for expo prebuild bare workflows.

SummitCollie avatar Nov 29 '25 05:11 SummitCollie