Angular 16 migration breaks templateRef #1786
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please provide reproducible repo or StackBlitz link to investigate. |
Beta Was this translation helpful? Give feedback.
-
This was breaking due to setting "preserveWhitespaces" in main.ts file. changing platformBrowserDynamic() to platformBrowserDynamic() solved the issue |
Beta Was this translation helpful? Give feedback.
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