Open francorobles opened 6 years ago
Does the demo app crash as well?
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
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');