Skip to content

Crash in flexbox-layout.android.js - Right-hand side of 'instanceof' is not an object #124

@svmashok

Description

@svmashok

Hi @NathanWalker @NathanaelA @rigor789 @gabrielbiga @sitefinitysteve

I am using @nstudio/nativescript-floatingactionbutton version 2.1.0 in angular project and FAB button works fine.
But i got error when i do logout from my application. Its just navigate to login page.. no special code inside.

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: apps\oxseco\src\webpack:\d:..\node_modules@nativescript\core\ui\layouts\flexbox-layout\flexbox-layout.js:14:0)
System.err: at applyAllNativeSetters(file: apps\xxxxx\src\webpack:\d:....\node_modules@nativescript\core\ui\core\properties\properties.js:1065:0)

is there any nativescript core dependency is missing in the plugin?

html:
<FAB
(tap)="fabTap()"
text=""
rippleColor="#f1f1f1"
class="fas fab-button"
>

ts:
registerElement(
'Fab',
() => require('@nstudio/nativescript-floatingactionbutton').Fab
);

Note: Without FAB implementation in html it works fine. so it must be an error from the plugin only.

my application package json have
"@angular/core": "9.1.0",
"@angular/forms": "9.1.0",
"@angular/platform-browser": "9.1.0",
"@angular/platform-browser-dynamic": "9.1.0",
"@angular/router": "9.1.0",
"@nativescript/angular": "~9.0.0",
"@nativescript/core": "~6.5.5",

Can anyone guide me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions