Closed edanweis closed 1 month ago
addComponent
Referring to Components · Nuxt Kit, the VPV doesn't run on the server-side. So, I think you may need to add mode: 'client'
when using addComponent
to register the component.
addComponent({
name: "MyPDFViewer",
export: "VPdfViewer",
filePath: "@vue-pdf-viewer/viewer",
mode: 'client'
});
Hope this helps! Let me know if it doesn't.
I have tried using with Nuxt3 SSR creating a new
register-components.ts
with"nuxt": "^3.12.3"
Installed with pnpm. Used override
"pdfjs-dist": "4.4.168"
. AddedBut get error