vue-pdf icon indicating copy to clipboard operation
vue-pdf copied to clipboard

Render on component load Cannot read properties of undefined (reading 'catch')

Open andyowli opened this issue 3 years ago • 2 comments

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.

andyowli avatar Jun 09 '22 06:06 andyowli

  • https://github.com/FranckFreiburger/vue-pdf/pull/377

luisrossi avatar Jul 21 '22 12:07 luisrossi

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

teckel12 avatar Apr 07 '23 22:04 teckel12