This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Angular 16 migration breaks templateRef #1786
Answered
by
smarsh-tejaskatariya
smarsh-tejaskatariya
asked this question in
Q&A
Answered by
smarsh-tejaskatariya
Apr 15, 2024
Replies: 2 comments 1 reply
|
Please provide reproducible repo or StackBlitz link to investigate. |
1 reply
|
This was breaking due to setting "preserveWhitespaces" in main.ts file. changing platformBrowserDynamic() to platformBrowserDynamic() solved the issue |
0 replies
Answer selected by
shanmukhateja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This was breaking due to setting "preserveWhitespaces" in main.ts file.
changing
platformBrowserDynamic()
.bootstrapModule(AppMainModule, { preserveWhitespaces: true })
.then(success => console.log(
Application started)).catch(err => console.error(err));
to
platformBrowserDynamic()
.bootstrapModule(AppMainModule)
.then(success => console.log(
Application started)).catch(err => console.error(err));
solved the issue