Title: Error: You may need an appropriate loader to handle this file type. Using ionic 5
Tags: angular;ionic-framework
Question: ERROR in ./node_modules/pdfjs-dist/build/pdf.js 2413:45
Module parse failed: Unexpected token (2413:45)
You may need an appropriate loader to handle this file type.
intent: renderingIntent,
renderInteractiveForms: renderInteractiveForms === true,
annotationStorage: annotationStorage?.getAll() || null
ERROR in ./node_modules/pdfjs-dist/web/pdf_viewer.js 895:20
Module parse failed: Unexpected token (895:20)
You may need an appropriate loader to handle this file type.
this._on(eventName, listener, {
external: true,
once: options?.once
Comment: same issue using webpak v4 & react, have you got any answer for this?



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:04/26/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<angular><ionic-framework>', 'Title': 'Error: You may need an appropriate loader to handle this file type. Using ionic 5', 'ViewCount': 297, 'id': 67263899, 'user_AboutMe': None, 'user_AccountId': 21405386.0, 'user_DisplayName': 'rond', 'user_Reputation': 11.0, 'user_Views': 0.0, 'user_id': 15766702.0}}