vue-pdf
vue-pdf copied to clipboard
Render on component load Cannot read properties of undefined (reading 'catch')
Using version 4.3.0, add pdf src to the component to render Typeerror: cannot read properties of undefined (reading'catch'), but this does not affect the normal use of the component. Locate the error, and the error is displayed in pdfRender.cancel().catch(function(err) { emitEvent('error', err); });
Just put canceling = true; in front of if ( canceling ),the component will not render this error.
- https://github.com/FranckFreiburger/vue-pdf/pull/377
As this project seems to be abandoned, I created a fork which corrects this bug. The package can be found here:
https://www.npmjs.com/package/@teckel/vue-pdf