Adding other libraries with directives produces issues of these sorts.
I added this package ngx-highlightjs - https://www.npmjs.com/package/ngx-highlightjs
Followed the documentation exactly as is.
A sample is here : https://stackblitz.com/edit/ngx-highlightjs-tpratt?file=package.json,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fhome%2Fhome.component.ts
Getting this error. I have spent a few hours already, but wanted to check if you have seen something similar.

But the same works fine in apps created using ng new

Adding other libraries with directives produces issues of these sorts.
I added this package ngx-highlightjs - https://www.npmjs.com/package/ngx-highlightjs
Followed the documentation exactly as is.
A sample is here : https://stackblitz.com/edit/ngx-highlightjs-tpratt?file=package.json,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fhome%2Fhome.component.ts
Getting this error. I have spent a few hours already, but wanted to check if you have seen something similar.
But the same works fine in apps created using

ng new