You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue3 vite ts , There are problems with using [email protected] version,4 and below versions are normal
[plugin:vite:import-analysis] Failed to resolve import "pdfjs-dist/build/pdf.worker.js" from
/* unplugin-vue-components disabled */import { defineComponent as _defineComponent } from "vue";
2 | import * as PDFJS from "pdfjs-dist";
3 | import * as PdfWorker from "pdfjs-dist/build/pdf.worker.js";
*/
Web browser and its version
google
Operating system and its version
mac
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
Create a new vue3 vite ts and use pdf-dist to display the network pdf to reproduce
This discussion was converted from issue #18788 on September 25, 2024 06:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Attach (recommended) or Link to PDF file
vue3 vite ts , There are problems with using [email protected] version,4 and below versions are normal
[plugin:vite:import-analysis] Failed to resolve import "pdfjs-dist/build/pdf.worker.js" from
/* unplugin-vue-components disabled */import { defineComponent as _defineComponent } from "vue";
2 | import * as PDFJS from "pdfjs-dist";
3 | import * as PdfWorker from "pdfjs-dist/build/pdf.worker.js";
*/
Web browser and its version
google
Operating system and its version
mac
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
Create a new vue3 vite ts and use pdf-dist to display the network pdf to reproduce
What is the expected behavior?
Display pdf normally
What went wrong?
Unable to display pdf, directly report an error
Link to a viewer
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions