This is a migrated thread and some comments may be shown as answers.

Telerik Platform Groceries template TypeScript Error

6 Answers 27 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dimitar
Top achievements
Rank 1
Dimitar asked on 10 Jul 2017, 02:17 PM
Hi , I have created a new project in telerik Native script platform using the example Groceries, when trying to start receiving : "TypeScript compilation failed
See Errors tab for more information." 

6 Answers, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 10 Jul 2017, 03:01 PM
Hello,

Could you provide more info about your problem? It would help if you could provide some further information about your environment (NativeScript CLI, -core-modules, node, typescript versions). Also sending the exact error, which is thrown will help us to validate the issue.

Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Dimitar
Top achievements
Rank 1
answered on 10 Jul 2017, 06:07 PM
Just going to the online platform and create a new app selecting the groceries template  and after that click run . I didn't changed anything its in the web version. 
0
Nikolay Tsonev
Telerik team
answered on 11 Jul 2017, 07:39 AM
Hi Dimitar,

If I understand you correctly, you are using a web version of Telerik Platform and the advance option to use the template by cloning it from a specific repository, while creating the project.

If this is so, there could be some mismatch to dependencies versions, which could lead to some errors.
Regarding that, you could create new NativeScript project while selecting a template from the drop-down menu -"NS v3.0 TypeScript Angular", which will allow you using NativeScript 3.0 and you could keep working in the tutorial.

In case this the problem still exists or you are following another workflow, please provide info about the exact steps you are following, while creating the app. It would also help if you send us the whole error log, which could be found in the "Error" tab located at the bottom of the screen.

Also give us info, whether you are using the companion app while deploying the app.

Thank you in advance for your cooperation.

Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Dimitar
Top achievements
Rank 1
answered on 11 Jul 2017, 09:34 AM

According to your comments I have created a new app selecting NS v3.0 TypeScript Angular . Now when click build and after open on the android device I receive this error :

Template parse errors:
"let-" is only supported on template elements. ("
<StackLayout class="page">
    <ListView [items]="items" class="list-group">
        <ng-template [ERROR ->]let-item="item">
            <Label [nsRouterLink]="['/item', item.id]" [text]="item.name"
          "): ItemsComponent@4:21

Error: Template parse errors:
"let-" is only supported on template elements. ("
<StackLayout class="page">
    <ListView [items]="items" class="list-group">
        <ng-template [ERROR ->]let-item="item">
            <Label [nsRouterLink]="['/item', item.id]" [text]="item.name"
          "): ItemsComponent@4:21
    at SyntaxError.BaseError [as constructor] (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:1595:29)
    at new SyntaxError (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:1793:18)
    at TemplateParser.parse (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:11210:21)
    at JitCompiler._compileTemplate (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:27480:70)
    at file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:27363:64
    at Set.forEach (native)
    at JitCompiler._compileComponents (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:27363:21)
    at createResult (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js:27246:21)
    at ZoneDelegate.invoke (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:190:28)
    at Zone.run (file:///data/data/com.telerik.NativeScript/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:83:43)

0
Nikolay Tsonev
Telerik team
answered on 11 Jul 2017, 10:30 AM
Hi,
This problem occurs because of the fact that the template for NativeScript 3.0 is still experimental for Telerik Platform and the companion app do not contain modules 3.0 in itself.

Excuse us for this inconvenience, we will work on resolving this error. 
In the meantime to be able to deploy the project on the device, you could use some of the available desktop clients and build and deploy the app, while the device is connected with a cable to the machine. 

This scenario will help you to keep working on your project without using the companion app.

Let me know, whether this helps or if I could assist you further.
Regards,
nikolay.tsonev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Dimitar
Top achievements
Rank 1
answered on 11 Jul 2017, 10:39 AM
ok, thank you 
Tags
General Discussion
Asked by
Dimitar
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Dimitar
Top achievements
Rank 1
Share this question
or