Skip to content

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

@SummitCollie

Description

@SummitCollie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions