You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do typescript files need to be compiled to js before they work? #15
Created the project using tns and it runs fine on the android device
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.
I run the project and the alert statement in the onLoad function does not fire.
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.
Yes, you'll need to compile TypeScript to JavaScript manually or with a build step. NativeScript's support for TypeScript right now means that we support TypeScript constructs such as class inheritance when working with native Java or Objective-C classes, but the code has to be compiled to JavaScript before NativeScript can run it.
Activity
soone commentedon Apr 3, 2015
I have the same trouble, how to use typescript to run app?
fealebenpae commentedon Apr 3, 2015
Yes, you'll need to compile TypeScript to JavaScript manually or with a build step. NativeScript's support for TypeScript right now means that we support TypeScript constructs such as class inheritance when working with native Java or Objective-C classes, but the code has to be compiled to JavaScript before NativeScript can run it.
Merge pull request #15 from NativeScript/hhristov/grid-layout-fix
lock commentedon Aug 31, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.