You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
From Discord: React Native Incompatibility with fromFileSystem Dynamic Imports in effect/unstable/sql/Migrator #6347
Users reported that in React Native, the 'fromFileSystem' migration loader from the 'effect/unstable/sql/Migrator' module breaks the Metro bundler due to dynamic imports that Metro does not support. Even importing other loaders like 'fromRecord' fails because the entire Migrator module includes 'fromFileSystem', causing build SyntaxErrors. A recommended approach is to avoid importing this Migrator module directly in React Native and instead use the migration loaders provided by '@effect/sql-sqlite-react-native/SqliteMigrator', which do not rely on dynamic imports and are compatible with React Native's Metro bundler. Specifically, 'fromRecord' is suggested as the simplest migration loader to use in React Native environments.
To clarify, the mere existence of fromFileSystem breaks things, I can't import anything from effect/unstable/sql/Migrator. Even doing import { fromRecord } from 'effect/unstable/sql/Migrator' breaks builds with a SyntaxError.
Activity
goknsh commentedon Jun 1, 2026
To clarify, the mere existence of
fromFileSystembreaks things, I can't import anything fromeffect/unstable/sql/Migrator. Even doingimport { fromRecord } from 'effect/unstable/sql/Migrator'breaks builds with aSyntaxError.Draft the two upstream issues, and close the inspector open item.