margelo / react-native-quick-sqlite

A fast react-native SQLite library built using JSI
https://margelo.io
MIT License
353 stars 28 forks source link

Failed to install react-native-quick-sqlite: React Native is not running on-device. QuickSQLite can only be used when synchronous method invocations (JSI) are possible #48

Open wogno opened 4 months ago

wogno commented 4 months ago

I install and I get this error, new architecture is enabled

Error: Failed to install react-native-quick-sqlite: React Native is not running on-device. QuickSQLite can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.

"react-native-quick-sqlite": "^8.1.0", "react-native": "0.74.2",

wogno commented 4 months ago

import { typeORMDriver } from 'react-native-quick-sqlite'

export const datasource = new DataSource({ type: 'react-native', database: 'mydb.db', location: '.', driver: typeORMDriver, entities: [ User

], synchronize: true, logging: DEV,

});

wogno commented 4 months ago

I fill like error is do to typeorm typeORMDriver

valceaalexandra commented 4 months ago

I get the same issue after updating RN to "0.74.2" from "0.73.4" and using the new architecture.

cjutstraMaxedy commented 4 months ago

I'm experiencing this as well. The suggested workaround didn't work for me sadly.

kevinranks commented 3 months ago

Can confirm I'm also receiving this error after upgrading to 0.74 w/ New Arch.

Has anyone managed to resolve it?

pranshuchittora commented 2 months ago

I am also facing the same on RN 0.75.2 only when new arch is enabled, on both Android and iOS

Screenshot 2024-09-04 at 18 50 55

There's a similar issue on the MMKV https://github.com/mrousavy/react-native-mmkv/issues/688 I will try to see if any patch from MMKV works here.