Skip to content

tns preview --bundle doesn't work with ActionBar in Angular projects #3997

@sebawita

Description

@sebawita

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

✔ Component nativescript has 5.0.0-2018-10-08-12421 version and is up to date.
✔ Component tns-core-modules has 4.2.1 version and is up to date.
✔ Component tns-android has 4.2.0 version and is up to date.
✔ Component tns-ios has 4.2.0 version and is up to date.

Describe the bug
tns preview --bundle breaks in Angular Projects with an error message: ERROR Error: Uncaught (in promise): Error: ActionBar(1) is not a valid View instance.

To Reproduce
I've only tested this on Android.

tns create test --ng
cd test
npm i -D nativescript-dev-webpack@next
tns preview --bundle

However, when I run tns run android --bundle or tns preview, the project runs correctly.

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