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

[Nativescript-vue] TypeError: Right-hand side of 'instanceof' is not an object #65

Open
butaminas opened this issue Jun 26, 2020 · 1 comment

Comments

@butaminas
Copy link

Using Nativescript-vue and adding this the code just as documented in my main app.js file:

import { AppSync } from "nativescript-app-sync";

AppSync.sync({
    deploymentKey: "my-key" 
});

When I try to run tns run android I get this error:

System.err: An uncaught Exception occurred on "main" thread.

System.err: Calling js method onCreateView failed

System.err: TypeError: Right-hand side of 'instanceof' is not an object

System.err:

System.err: StackTrace:

System.err: (file: node_modules/@nativescript/core/ui/layouts/flexbox-layout/flexbox-layout.android.js:14:14)

System.err:     at applyAllNativeSetters(file: node_modules/@nativescript/core/ui/core/properties/properties.js:1065:37)

System.err:     at initNativeView(file: node_modules/@nativescript/core/ui/core/properties/properties.js:992:8)

...

However, if I would run tns run android --no-hmr I would get this:

System.err: An uncaught Exception occurred on "main" thread.

System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function

System.err: TypeError: Cannot read property 'getPackageManager' of undefined

System.err: File: (file: node_modules/nativescript-appversion/appversion.android.js:48:51)

...

@vallemar
Copy link

Same error here

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