-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
TypeError: Cannot read properties of undefined (reading 'catch') #369
Comments
this.renderPage = function(rotate) {
if ( pdfRender !== null ) {
if ( canceling )
return;
canceling = true;
pdfRender.cancel().catch(function(err) {
emitEvent('error', err);
});
return;
} |
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
- pdfRender.cancel is not an async function (unavailable to use catch chaining) - related to FranckFreiburger#369
Sorry for comments from my rebase commit... 🙏 |
use optional chaining there . |
worked for me , thanks for the answer |
As this project seems to be abandoned, I created a fork which corrects this bug. The package can be found here: |
vue file
.
.
pdf file successfully displayed
.
.
but it produces lot of errors in console
The text was updated successfully, but these errors were encountered: