EddyVerbruggen / nativescript-calendar

:date: NativeScript plugin to Create, Delete and Find Events in the native Calendar
MIT License
46 stars 11 forks source link

Crashes during require #48

Open francorobles opened 6 years ago

francorobles commented 6 years ago

package.json

{ "dependencies": { "nativescript-barcodescanner": "1.4.1", "nativescript-batch": "2.10.3", "nativescript-calendar": "2.0.0", "nativescript-loading-indicator": "2.3.2", "nativescript-phone": "1.2.0", "nativescript-ui-calendar": "^3.6.0", "nativescript-ui-core": "^1.0.0", "nativescript-ui-listview": "3.5.0", "nativescript-ui-sidedrawer": "3.5.0", "tns-core-modules": "3.4.0" }, "devDependencies": {}, "nativescript": { "id": "com.tentaqle.ucr", "tns-android": { "version": "3.4.0" }, "tns-ios": { "version": "3.4.0" } } }

home.js ------- This is where it crashes upon require('nativescript-calendar'); 'use strict'; var isInit = true, application = require('application'), helpers = require('../../utils/widgets/helper'), http = require("http"), labelModule = require("ui/label"), observableArray = require("data/observable-array"), calendarModule = require("nativescript-ui-calendar"), moment = require('../../node_modules/moment/moment'), utilityModule = require("utils/utils"), calendarPlugin = require('nativescript-calendar'), frameModule = require("ui/frame"), dialogs = require("ui/dialogs"), gestures = require("ui/gestures"), viewModel = require('./activityFitWellView-view-model');

EddyVerbruggen commented 6 years ago

Does the demo app crash as well?

francorobles commented 5 years ago

I just noticed that if it is tns-ios: 2.5.0 it works but on 4.2.0 it does not. This is the error: (CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: android