"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/.