ionic-orm icon indicating copy to clipboard operation
ionic-orm copied to clipboard

ionic --prod flag causes issue

Open bolivir opened this issue 7 years ago • 1 comments

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.

bolivir avatar Sep 27 '17 19:09 bolivir

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')

francosang avatar Oct 17 '17 02:10 francosang