pdfRender.cancel().catch(function(err) , undefined (reading 'catch')"
rnb3ds opened this issue · comments
出现报错:
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;
}
As this project seems to be abandoned, I created a fork which corrects this bug. The package can be found here:
@teckel12 Do you know if this project is just dead/is someone else maintaining this project now?