BradyNadeau / ionic-orm

Data-Mapper ORM for Ionic2, AngularJS, ( Hybrid Mobile Applications ), Supports WebSQL and SQLite databases. Currently in active development. - TypeORM Fork
https://typeorm.github.io
MIT License
48 stars 13 forks source link

Error in '~/decorator/columns/column.js', line 43: 'getMetadataArgsStorage().columns.add is not a function' #10

Open faatihi opened 7 years ago

faatihi commented 7 years ago

Hi fellas, Everything works fine when am working in the browser. But when I use ionic run android --device --prod (production code), the app launches but only shows white screen and nothing else. When I attach the device to Chrome and inspect the console logs from Chrome://inspect, I see the error, 'i().columns.add is not a function'. I traced it to this file, '~/decorator/columns/column.js' and realised getMetadataArgsStorage().columns is of type PropertyMetadataArgsCollection but doesn't have the add() function.

Anyone have some ideas how to resolve this? The app works flawlessly when I deploy it without the --prod switch.

Thanks.

sidneycorreia commented 7 years ago

I'll need a few days to take the tests.

faatihi commented 7 years ago

Thanks sidneycorreia. Actually, I am using your fork https://github.com/sidneycorreia/ionic-orm, but I did not find a way to submit this issue, that's why I posted it here instead - in BradyLiles'. Am glad you replied and hope we can resolve this issue.

raniel90 commented 7 years ago

@sidneycorreia Some news about this problem?

raniel90 commented 7 years ago

@sidneycorreia Some news about this problem?

darmie commented 7 years ago

I am still having this problem, any help?

lucas207 commented 5 years ago

I have a same problem, when i test on device, got this error : Uncaught TypeError: Object [object Array] has no method 'add'