Skip to content

Uncaught ReferenceError: __decorate is not defined #304

Description

@macjohnny

Environment
Provide the content of the package.json file in the project:

@nativescript/schematics@10.1.0

Describe the bug
When starting the newly created app, the error Uncaught ReferenceError: __decorate is not defined occurs in the browser and the app crashes.

To Reproduce

ng new -c=@nativescript/schematics dummy-nativescript --shared
cd dummy-nativescript
ng serve

Expected behavior
No error

Additional context
The solution is to remove the following lines from the tsconfig.json:

    "noEmitHelpers": true, 

(Credits: https://stackoverflow.com/a/64088843)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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