-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database operations are not working when i run in release mode :( #2
Comments
@wliadmin where you able to find a solution for this issue? |
I cannot get https://github.com/typeorm/react-native-example/ to run on either Android or iOS with or without metro-minify-terser Try https://github.com/sheva007/typeorm-boilerplate/ This runs on iOS debug/release and Android in simulator in debug mode. On iOS I wen to select "Legacy Build" from Xcode > File > Project Settings I cannot get an Android release build to run? Perhaps an issue with signing setup?
A debug build runs fine on Android simulator:
|
This issue is due to minification in release mode changing class names and file names. It can be fixed with the following steps:
minifierPath: 'metro-minify-terser',
minifierConfig: {
ecma: 8,
keep_classnames: true,
keep_fnames: true,
module: true,
mangle: {
module: true,
keep_classnames: true,
keep_fnames: true,
},
}, |
thank you! |
I tried this solution but the problem has not been solved yet |
Changing the minifier config didn't work for me (react native version 0.67). However, I was able to get it working in release builds by explicitly setting table names in the entity decorator: @Entity({ name: "my_table_name" })
class MyTableName {
... |
Database operations are not working in release mode
Steps to reproduce
-> Run this demo by archiving application in iOS
-> Database operations are not performing in release mode
Expected behaviour
-> All the database operations should be performed
The text was updated successfully, but these errors were encountered: