When I want to save an object with a property of type Date, NativeScript throw me an error
CONSOLE LOG: Error in firebase.setValue: Error: (setValue:withCompletionBlock:) Cannot store object of type __NSTaggedDate at 0.date. Can only store objects of type NSNumber, NSString, NSDictionary, and NSArray.
CONSOLE ERROR: ERROR Error: Uncaught (in promise): Error: (setValue:withCompletionBlock:) Cannot store object of type __NSTaggedDate at 0.date. Can only store objects of type NSNumber, NSString, NSDictionary, and NSArray.
Error: (setValue:withCompletionBlock:) Cannot store object of type __NSTaggedDate at 0.date. Can only store objects of type NSNumber, NSString, NSDictionary, and NSArray.
at file: src/webpack:/TinaAppV2/node_modules/@nativescript/firebase/firebase.ios.js:1239:0
at new ZoneAwarePromise (file: src/webpack:/TinaAppV2/node_modules/zone.js/fesm2015/zone.js:1427:0)
at Object._firebase_common__WEBPACK_IMPORTED_MODULE_0__.firebase.setValue (file: src/webpack:/TinaAppV2/node_modules/@nativescript/firebase/firebase.ios.js:1237:0)
at FirebaseService.Set (file: src/webpack:/TinaAppV2/src/app/services/firebase.service.ts:36:8)
at Object.next (file: src/webpack:/TinaAppV2/src/app/home/preferences/preferences.component.ts:161:0)
at ConsumerObserver.exports.modules../node_modules/rxjs/dist/cjs/internal/Subscriber.js.ConsumerObserver.next (file: src/webpack:/TinaAppV2/node_modules/rxjs/dist/cjs/internal/Subscriber.js:113:0)
at SafeSubscriber.exports.modules../node_modules/rxjs/dist/cjs/internal/Subscriber.js.Subscriber._next (file: src/webpack:/TinaAppV2/node_modules/rxjs/dist/cjs/internal/Subscriber.js:80:0)
at SafeSub<\M-b\M^@\M-&>
nothing happened to generator for 5 sec, auto-deactivating it with activationCount: 0; <UISelectionFeedbackGenerator: 0x280a3a300>
Is that a normal behavior ? I don't have that problem with android. I use NativeScript with angular
When I want to save an object with a property of type Date, NativeScript throw me an error
Is that a normal behavior ? I don't have that problem with android. I use NativeScript with angular
my package.json