I am having issues deploying an .NET Core/Angular2 template site and decided to go back to square one. I downloaded a clean template and then tried to build it out of the gate and I'm still running into issues. I'm sure it is something simple, but I've check all of the versions I can think of and am stuck. Versions and console output below. Any thoughts?
Visual Studio: 15.3.5 .NET Core SDK: 2.0.3 NodeJS: 6.9.5 TypeScript: 2.3.4.0 angular-cli: 1.5.5 npm: 4.3.1 yarn: 1.3.2
First error in log file: ERROR in Error at C:/dev/DockerTest/angular/node_modules/ngx-bootstrap/datepicker/daypicker.component.d.ts.DayPickerComponent.html(53,38): "let-" is only supported on ng-template elements. ("
Log File
Directory: C:\dev\DockerTest\aspnet-core\build
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12/5/2017 2:13 AM outputs
Restore completed in 55.81 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Application\dockertest.Application.csproj.
Restore completed in 60.75 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Core\dockertest.Core.csproj.
Restore completed in 70.86 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Migrator\dockertest.Migrator.csproj.
Restore completed in 124.86 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.EntityFrameworkCore\dockertest.EntityFrameworkCore.csproj.
Restore completed in 38.95 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.EntityFrameworkCore\dockertest.EntityFrameworkCore.csproj.
Restore completed in 47.88 ms for C:\dev\DockerTest\aspnet-core\test\dockertest.Tests\dockertest.Tests.csproj.
Restore completed in 106.18 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Core\dockertest.Web.Core.csproj.
Restore completed in 39.46 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Host\dockertest.Web.Host.csproj.
Restore completed in 82.14 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Host\dockertest.Web.Host.csproj.
Restore completed in 121.09 ms for C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Host\dockertest.Web.Host.csproj.
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
dockertest.Core -> C:\dev\DockerTest\aspnet-core\src\dockertest.Core\bin\Debug\netcoreapp2.0\dockertest.Core.dll
dockertest.Application -> C:\dev\DockerTest\aspnet-core\src\dockertest.Application\bin\Debug\netcoreapp2.0\dockertest.Application.dll
dockertest.EntityFrameworkCore -> C:\dev\DockerTest\aspnet-core\src\dockertest.EntityFrameworkCore\bin\Debug\netcoreapp2.0\dockertest.EntityFrameworkCore.dll
dockertest.Web.Core -> C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Core\bin\Debug\netcoreapp2.0\dockertest.Web.Core.dll
dockertest.Web.Host -> C:\dev\DockerTest\aspnet-core\src\dockertest.Web.Host\bin\Debug\netcoreapp2.0\dockertest.Web.Host.dll
dockertest.Web.Host -> C:\dev\DockerTest\aspnet-core\build\outputs\Host\
yarn install v1.3.2
[1/4] Resolving packages...
success Already up-to-date.
Done in 1.23s.
Your global Angular CLI version (1.5.5) is greater than your local
version (1.5.3). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
10% building modules 6/15 modules 9 active ...flags\dist\sprite\famfamfamDate: 2017-12-05T07:14:32.912Z
Hash: d35a40b3b2c18cde5f0f
Time: 23420ms
chunk {0} styles.0635b02e564d0eab45d1.bundle.css (styles) 429 kB [initial] [rendered]
chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes [initial] [rendered]
chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered]
chunk {3} inline.b7cdad47c4c7d798d24b.bundle.js (inline) 1.45 kB [entry] [rendered]
ERROR in Error at C:/dev/DockerTest/angular/node_modules/ngx-bootstrap/datepicker/daypicker.component.d.ts.DayPickerComponent.html(53,38): "let-" is only supported on ng-template elements. ("
</thead>
<tbody>
<template ngFor [ngForOf]="rows" [ERROR ->]let-rowz="$implicit" let-index="index">
<tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].sec")
Error at C:/dev/DockerTest/angular/node_modules/ngx-bootstrap/datepicker/daypicker.component.d.ts.DayPickerComponent.html(53,59): "let-" is only supported on ng-template elements. ("
</thead>
<tbody>
<template ngFor [ngForOf]="rows" let-rowz="$implicit" [ERROR ->]let-index="index">
<tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].secondary && rowz[6].sec")
3 Answer(s)
-
0
Hi @JeffTindall,
Can you check the version of ngx-bootstrap you are using in packages.json ? Here is the related issue <a class="postlink" href="https://github.com/valor-software/ngx-bootstrap/issues/3024">https://github.com/valor-software/ngx-b ... ssues/3024</a>, using ngx-bootstrap 2.0.0-beta.8 or above should solve this problem.
-
0
That seemed to work. So I presume the template will need to have the package.json updated so it will build correctly out of the gate? Or is this something specific to my machine?
-
0
Hi @JeffTindall ,
Actually, latest version v5.0.4 should contain correct version, <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/package.json#L94">https://github.com/aspnetzero/aspnet-ze ... e.json#L94</a>. Did you try with v5.0.4 ?