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

TypeError: Cannot read properties of undefined (reading 'catch') at PDFJSWrapper.renderPage (pages-preview-pdf.js:37718)

Open tacogg opened this issue 4 years ago • 7 comments

[Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading 'catch')"

TypeError: Cannot read properties of undefined (reading 'catch') at PDFJSWrapper.renderPage (pages-preview-pdf.js:37718)

 - vue-pdf 4.3.0
 - vue.js 2.6.12

tacogg avatar Sep 09 '21 07:09 tacogg

I also encountered the same problem

dreamer-fox avatar Sep 10 '21 08:09 dreamer-fox

请问解决了吗

Zxxstarstar avatar Sep 16 '21 05:09 Zxxstarstar

回退4.2.0,没有这个错误提示,sudo npm install [email protected]

WuChuanRong avatar Oct 19 '21 01:10 WuChuanRong

Same here

dvago avatar Nov 01 '21 12:11 dvago

I sent a pull request with the fix, not sure if it will ever be considered.

dvago avatar Nov 01 '21 13:11 dvago

Downgrading to v4.0.0 seems to work. Seeing that the comments are from 2021, it seems this is no longer mantained

GMolini avatar Nov 17 '22 17:11 GMolini

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