typeorm: nativescript support breaks browser in react-native
Issue type:
[ ] question [X] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql / mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[X] react-native
[ ] expo
TypeORM version:
[X] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem: I’ve got a react-native application using typeorm. I cloned the repository (trying to fix https://github.com/typeorm/typeorm/issues/2502) and the package I build uses nativescript-sqlite though I don’t want to use it.
Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module `nativescript-sqlite` from `C:\crap\node_modules\typeorm\build\package\browser\driver\nativescript\NativescriptDriver.js`: Module `nativescript-sqlite` does not exist in the Haste module map
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (28 by maintainers)
@championswimmer same error:
FWIW https://github.com/typeorm/typeorm/issues/2479 would be a good solution to this