[Bug]: Angular v14: On Upgrade to latest stable pdfjs pre-built(v.4.4.168), there is an optimization error for prod mode build #18491
Unanswered
HimanshuPatel19
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Attach (recommended) or Link to PDF file
Error: Optimization error [scripts.4bd97bbc6a5aa155.js]: Error: Transform failed with 101 errors:
scripts.4bd97bbc6a5aa155.js:19743:6: ERROR: The symbol "isNodeJS" has already been declared
scripts.4bd97bbc6a5aa155.js:19744:6: ERROR: The symbol "IDENTITY_MATRIX" has already been declared
scripts.4bd97bbc6a5aa155.js:19745:6: ERROR: The symbol "FONT_IDENTITY_MATRIX" has already been declared
scripts.4bd97bbc6a5aa155.js:19746:6: ERROR: The symbol "MAX_IMAGE_SIZE_TO_CACHE" has already been declared
scripts.4bd97bbc6a5aa155.js:19747:6: ERROR: The symbol "LINE_FACTOR" has already been declared
Web browser and its version
Google Chrome (126.0.6478.115)
Operating system and its version
Windows
PDF.js version
4.4.168
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
"libs/legacy/assets/global/pdfjs/build/pdf.mjs",
"libs/legacy/assets/global/pdfjs/build/pdf.worker.mjs",
"libs/legacy/assets/global/pdfjs/web/viewer.mjs",
]
What is the expected behavior?
The prod mode build should not give any optimization errors.
What went wrong?
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions