Closed skoropadas closed 1 year ago
@splincode only in your stackblitz example because it uses old angular compiler.
How to reproduce it based on your stackblitz example:
@angular-devkit/build-angular
, @angular/cli
, @angular/compiler-cli
in the package.json
to 16.x.x versiontypescript
package in the package.json
to 5.0.x versionnpm i --force
import 'zone.js/dist/zone';
with import 'zone.js';
in main.ts
file;ng s
How to check that the newest version fixes it:
ngx-highlightjs
to the latest one in the package.json
(9.0.0
)npm i --force
node_modules/@taiga-ui/addon-doc/node_modules/ngx-highlightjs
folder and re-run the app again you will see that now it worksWhy it can't work:
4.x.x version of the highlighter was compiled with ivy: false
which mean it used ViewEngine
compiler that was removed in the Angular 16. But the latest version uses partial mode that allows it to work with the Angular 16. I hope that will be enough.
@skoropadas thank you for research, we need to investigate this issue
Playground Link
https://stackblitz.com/edit/stackblitz-starters-nu8bci?file=src%2Fmain.ts
Description
TuiDocCodeComponent
doesn't work in Angular 16 because ofngx-highlightjs
dependency that doesn't support Ivy.Angular version
16.x.x
Taiga UI version
3.30.0
Which browsers have you used?
Which operating systems have you used?