question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read properties of undefined (reading 'catch')

See original GitHub issue

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)

https://github.com/FranckFreiburger/vue-pdf/blob/1a47de972abefd2079a4e23485041f08d9f68aab/src/pdfjsWrapper.js#L196

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
flavionobredevcommented, Oct 21, 2021

sorry for the question… is this fix now available for npm update? thanks

2reactions
chenxu1112commented, Aug 26, 2021

“pdfjs-dist”: “2.5.207”, “vue-pdf”: “4.2.0” 锁定这两个版本完美解决

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read properties of undefined (reading 'catch')
The error TypeError: Cannot read properties of undefined (reading 'catch') means that you are calling catch on undefined .
Read more >
TypeError: Cannot read properties of undefined ... - GitHub
TypeError : Cannot read properties of undefined (reading 'catch') #369. Open. syamsoul opened this issue on Apr 24 · 3 comments.
Read more >
Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
error typeerror: cannot read properties of undefined ... - You.com
It is because there is no res object in the getAllUsers function. You need to create a mock response and request and pass...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found