Skip to content

Do typescript files need to be compiled to js before they work? #15

@ritcoder

Description

@ritcoder

I'm following the getting started tutorial.

  1. Created the project using tns and it runs fine on the android device
  2. Opened the folder as a website in visual studio and added a few files (sighnpView.xml and signUpView.ts). The .ts files do not compile on save.
  3. I run the project and the alert statement in the onLoad function does not fire.
  4. I added a new file "signupView.js" and it works just fine.

Is nativescript supposed to compile the typescript files or I'll have to make sure the correct js files exist? Not sure if I should add a gulp task to do the compilation.

Thanks.

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