Telerik Platform Groceries template TypeScript Error

7 posts, 0 answers
  1. Dimitar
    Dimitar avatar
    4 posts
    Member since:
    May 2014

    Posted 10 Jul Link to this post

    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." 
  2. nikolay.tsonev
    Admin
    nikolay.tsonev avatar
    222 posts

    Posted 10 Jul Link to this post

    Hello,

    Could you provide more info about your problem? It would help if you could provide some further information about your environment (NativeScript CLI, tns-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.
  3. Dimitar
    Dimitar avatar
    4 posts
    Member since:
    May 2014

    Posted 10 Jul in reply to nikolay.tsonev Link to this post

    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. 
  4. nikolay.tsonev
    Admin
    nikolay.tsonev avatar
    222 posts

    Posted 11 Jul Link to this post

    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.
  5. Dimitar
    Dimitar avatar
    4 posts
    Member since:
    May 2014

    Posted 11 Jul in reply to nikolay.tsonev Link to this post

    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)

  6. nikolay.tsonev
    Admin
    nikolay.tsonev avatar
    222 posts

    Posted 11 Jul Link to this post

    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.
  7. Dimitar
    Dimitar avatar
    4 posts
    Member since:
    May 2014

    Posted 11 Jul in reply to nikolay.tsonev Link to this post

    ok, thank you 
Back to Top