PDF.js in Vite library – Failed to fetch dynamically imported module
I have created a custom PDF viewer component in a Vue/Quasar Vite project, which is being built as a library. When using the library on local, everything works completely fine. However when deployed to production environment, I get the following error: