Skip to content

Cannot read properties of undefined (reading 'catch') #334

@windsonR

Description

@windsonR

rendering error:

vue.esm.js?a026:1906 
        
       TypeError: Cannot read properties of undefined (reading 'catch')
    at PDFJSWrapper.renderPage (pdfjsWrapper.js?a068:196)
    at VueComponent.resize (componentFactory.js?0d60:75)
    at invokeWithErrorHandling (vue.esm.js?a026:1872)
    at VueComponent.invoker (vue.esm.js?a026:2197)
    at invokeWithErrorHandling (vue.esm.js?a026:1872)
    at VueComponent.Vue.$emit (vue.esm.js?a026:3912)
    at VueComponent.handler (resize-sensor.vue?c7ed:49)
    at invokeWithErrorHandling (vue.esm.js?a026:1872)
    at Watcher.run (vue.esm.js?a026:4593)
    at flushSchedulerQueue (vue.esm.js?a026:4335)

pdfRender.cancel().catch(function(err) {

this pdfRender.cancel() is undefined

environment:
vue-pdf: 4.3.0
vue.js: 2.6.14
webpack: 5.50.0
browser: Microsoft Edge 94.0.989.0 and FireFox 93.0a1
os: macos 11.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions