Skip to content

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

@butaminas

Description

@butaminas

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)

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions