stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
449 stars 167 forks source link

Error when loading file(Google Chrome) #2352

Closed YaromichSergey closed 3 weeks ago

YaromichSergey commented 4 weeks ago

Error when open document(problem not in document) image

In version 19.6.1 everything is fine. In version 20+(testing in 20.2.0) getting this issue

image

Chrome version 117.0.5938.62. It's looks like polyfill?

It's not related to specific document, reproduced in all files.

stephanrauh commented 4 weeks ago

Sounds like a duplicate of #2301. In your case it's correct - Chrome 117 does not support Promise.withResolvers(). That should be detected by the op-chaining-support.js script, but maybe zone.js is really messing up things.

YaromichSergey commented 3 weeks ago

Fixed with new updated version of chrome(125.x). Can be closed. Thanks

stephanrauh commented 3 weeks ago

Yes, I know updating to a current Chrome fixes the problem, but I'd like to solve the issue for the old Chrome. Problem is, I don't know how to install the old version without having to uninstall the current version - so I can't debug the issue myself.

Be that as it may, I'm tracking the issue at #2301, so I'll happily close this ticket. Thanks for telling me you've found a solution! That's just great!

Best regards, Stephan