Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes during require #48

Open
francorobles opened this issue May 23, 2018 · 2 comments
Open

Crashes during require #48

francorobles opened this issue May 23, 2018 · 2 comments

Comments

@francorobles
Copy link

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
Copy link
Owner

Does the demo app crash as well?

@francorobles
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants