jasontaylordev / NorthwindTraders

Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"SyntaxError: strict mode code may not contain 'with' statements" after updating to Angular 9

kondelik opened this issue · comments

Be advice, you are going to hit the .net scaffolding bug when you update this repo to Angular 9:

SyntaxError: strict mode code may not contain 'with' statements

Original issue with solution: angular/angular#34970

Solution is to remove

export { renderModule, renderModuleFactory } from '@angular/platform-server';

from main.ts (see link above for details)

Thanks, I detailed the full steps here - https://jasontaylor.dev/asp-net-core-angular-9-upgrade/.