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

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

Open faatihi opened this issue 8 years ago • 6 comments

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.

faatihi avatar Jul 08 '17 02:07 faatihi

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

sidneycorreia avatar Jul 13 '17 09:07 sidneycorreia

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.

faatihi avatar Jul 14 '17 23:07 faatihi

@sidneycorreia Some news about this problem?

raniel90 avatar Jul 24 '17 17:07 raniel90

@sidneycorreia Some news about this problem?

raniel90 avatar Aug 22 '17 15:08 raniel90

I am still having this problem, any help?

darmie avatar Oct 09 '17 12:10 darmie

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

lucas207 avatar Nov 28 '18 17:11 lucas207