Module parse error in 'pdfjs-dist' module in angular

Discussão em 'Angular' iniciado por Rakshitha Vasishta, Dezembro 22, 2024.

  1. 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!

    Continue reading...

Compartilhe esta Página