ionic-orm
ionic-orm copied to clipboard
ionic --prod flag causes issue
Hi,
There is a problem when adding the prod flag to the ionic cordova run android command. The following error appears: columns.add is not a function
If i run the command with the --aot flag its working as expected, so i think there is a problem with the minify that happens by the --prod command.
I was having a similar problem using --prod flag. My case was different:
SQLError {code: 5, message: "could not prepare statement (23 not authorized)"}
The couse of my issue was during the creation of the tables. Logging the queries I realised that the name of the tables was empty. Almost sure your case is related to something else, but I could solve mine definnig the table name in the decorator of each entity:
@Table('player')