Following error is obtained when trying to build project using 'pdfjs-dist' npm module in Angular
Module parse failed: Unexpected token (2413:45)
File was processed with these loaders:
* ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
* ./node_modules/@ngtools/webpack/src/ivy/index.js
You may need an additional loader to handle the result of these loaders.
| intent: renderingIntent,
| renderInteractiveForms: renderInteractiveForms === true,
> annotationStorage: annotationStorage?.getAll() || null
| });
| }
How to resolve this? Any workarounds or suggestions would help a lot!