I'm trying to create a new 2.5 project with typescript.
tns info says 2.5.3 for NS and 2.5.2 for tns-core-modules.
tns create test --template tsc
When I compile, I get the following error:
`
Executing before-prepare hook from C:\Users\pc\nativescript\sd4\hooks\before-prepare\nativescript-dev-android-snapshot.js Executing before-prepare hook from C:\Users\pc\nativescript\sd4\hooks\before-prepare\nativescript-dev-typescript.js Found peer TypeScript 2.2.2 app/app.ts(8,22): error TS2307: Cannot find module 'application'.
app/bundle-config.ts(1,11): error TS2304: Cannot find name 'global'.
app/bundle-config.ts(3,5): error TS2304: Cannot find name 'require'.
app/bundle-config.ts(6,5): error TS2304: Cannot find name 'global'. app/bundle-config.ts(6,46): error TS2304: Cannot find name 'require'.
app/main-page.ts(8,22): error TS2307: Cannot find module 'ui/page'.
app/main-view-model.ts(23,18): error TS2339: Property 'notifyPropertyChange' does not exist on type 'HelloWorldModel'.
`
tsctemplate has been updated to work with all 3.0 bits. You will need to specifically point to the 2.5 typescript template by doingtns create test --template [email protected]- pkanev