Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdfRender.cancel().catch(function(err) , undefined (reading 'catch')" #404

Open
rnb3ds opened this issue Mar 8, 2023 · 4 comments
Open

Comments

@rnb3ds
Copy link

rnb3ds commented Mar 8, 2023

出现报错:
Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading 'catch')"
found in
---> at node_modules/vue-resize-sensor/src/resize-sensor.vue
at node_modules/vue-pdf/src/vuePdfNoSss.vue

TypeError: Cannot read properties of undefined (reading 'catch')
at PDFJSWrapper.renderPage (pdfjsWrapper.js?a068:196:1)
at VueComponent.resize (componentFactory.js?0d60:76:1)

pdfjsWrapper.js
报错代码出现位置
if ( pdfRender !== null ) {
if ( canceling )
return;
canceling = true;
pdfRender.cancel().catch(function(err) {
emitEvent('error', err);
});
return;
}

@teckel12
Copy link

teckel12 commented Apr 7, 2023

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

@rnb3ds
Copy link
Author

rnb3ds commented Apr 7, 2023 via email

@shawndeprey
Copy link

@teckel12 Do you know if this project is just dead/is someone else maintaining this project now?

@rnb3ds
Copy link
Author

rnb3ds commented Jul 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants