Install packages required for versions below 12
17 Jun 20261 minute to read
For Angular versions below 12, use the legacy (ngcc) package of the Angular components. To download the ngcc package, use the commands below.
Add @syncfusion/ej2-angular-pdfviewer@ngcc to the application:
npm install @syncfusion/ej2-angular-pdfviewer@ngcc --saveTo reference the ngcc package in the package.json file, append the -ngcc suffix to the package version:
"@syncfusion/ej2-angular-pdfviewer": "20.2.38-ngcc"NOTE
If the
-ngcctag is not specified during installation, the Ivy library package will be installed. In View Engine projects this may produce compatibility warnings; use the-ngccpackage for Angular versions below 12.