Cannot set properties of undefined (setting 'workerSrc')
File: /Users/edy/Desktop/project/lightpdf/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tato30/vue-pdf/dist/index.mjs:741:35 Code: 740 | function vl(l) { > 741 | D.GlobalWorkerOptions.workerSrc = l; | ^ 742 | } 743 | function fl(l, d = { 744 | onProgress: void 0, Stacktrace:
That error is common when SSR frameworks are used, Try wrapping the component with some "client-only" component or directive.
I used astro for development and I used the instructions for client rendering
But the error remains unresolved
I have not used astro but after some research I found this: