I used the pyqt5 code with QtWebEngine from https://stackoverflow.com/a/48053017/17089139 to show a PDF file within my desktop application. It worked fine for several months now. After an update of pdf.js to 2.11.338-1 (from archlinux-repo) I get the following error in my pycharm-console:
js: Uncaught SyntaxError: Unexpected token '='
The application starts, but no PDF is shown. Where/How to debug this error?
- Python: 3.9
- PyQt5: 5.15.2
- PyQtWebEngine: 5.15.2
Edit: Problem seems to be result of unstable (2.11.338) PDF.js - Usage of stable (2.10.377) removes the error and PDF is shown. Thanks to @eyllanesc for the hint.