I am having an issue with compiling angular (webpack) after adding @progress/kendo-angular-pdfviewer@14.3.0. It is referencing pdfjs-dist in the error. I do not see anywhere in the Getting Started > Dependencies about pdfjs-dist being needed. The StackBlitz demo does not contain that library either. When I try adding the pdfjs-dist module (either latest 4.0 or earlier 3.11), more errors occur related to pdfjs-dist. My tsconfig.json compilerOptions has module=es2020 and target=es2022. I do not have issues with any other @progress/kendo-angular-xxxxxx modules, and the @progress/kendo-license is included. Here is the error without pdfjs-dist module installed:
ERROR in ./node_modules/@progress/kendo-angular-pdfviewer/fesm2020/progress-kendo-angular-pdfviewer.mjs 17:0-43Module not found: Error: Can't resolve 'pdfjs-dist/build/pdf.worker.entry' in '[path to project]\node_modules\@progress\kendo-angular-pdfviewer\fesm2020'
Did you mean 'pdf.worker.entry.js'?
BREAKING CHANGE: The request 'pdfjs-dist/build/pdf.worker.entry' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'pdfjs-dist/build/pdf.worker.entry' in '[path to project]\node_modules\@progress\kendo-angular-pdfviewer\fesm2020'
Parsed request is a module
using description file: [path to project]\node_modules\@progress\kendo-angular-pdfviewer\package.json (relative path: ./fesm2020)
Field 'browser' doesn't contain a valid alias configuration
resolve as module