-
Notifications
You must be signed in to change notification settings - Fork 10.3k
node packge pdfjs-dist@2.6.347 syntax error #13190
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
Comments
First of all, that version is no longer supported; please find the latest releases at https://mozilla.github.io/pdf.js/getting_started/#download. Hence you'll need to update to either version Depending on which of the two versions you pick, please note:
|
Sorry to bother you, both version errors found in the code:
|
This clearly suggests that you didn't actually read/follow all of #13190 (comment), since the quotes (from the relevant READMEs) explain what you need to do here. |
See: Optional chaining (?.) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining |
Once more: The answer was already provided in #13190 (comment), and it means that you'll need to import from [1] Or |
@Snuffleupagus This import doesn't work for me. Folder 'es5' not exists in node_modules |
Configuration:
Steps to reproduce the problem:
npm install pdfjs-dist@2.6.347
node_modules/pdfjs-dist/build/pdf.js
line 2413 you will get this:annotationStorage: annotationStorage?.getAll() || null
, and this is definitely a syntax error.A lot of same errors found at line 2771, line 2817, line 2907, line 2934, line 3488, line 3543, line 3653, line 3744 .etc
The text was updated successfully, but these errors were encountered: