-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Bug]: Cannot find name 'SetIterator' Did you mean 'Iterator'? #18867
Comments
Sorry, but that's not an environment that we know anything about and thus we cannot provide any help/support for it unfortunately.
That version is many years out of date, and completely unsupported now.
This sounds like a TypeScript issue, rather than PDF.js one; please ensure that you're using the latest TypeScript version. In general this issue is unfortunately missing too much information in order to be actionable; please also see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):
|
I Just recently started getting this error as well. If you find out the cause please share! |
You need to update to TypeScript 5.6. |
ooof, angular prevents me from going up to 5.6 😞 |
Same problem here, can't update typescript due to Angular |
We are using the same version as Angular: |
That must be for v19. The current version 18 doesn't support it |
You can create a .d.ts file with no imports/exports (so that TS considers it to be global), and declare a SetIterator alias for Iterator. |
Any guides on how to do that? Facing the same issue using Angular 17 and can't upgrade. |
I think:
|
That worked, you're a life saver! |
Attach (recommended) or Link to PDF file
Jenkins build failing at cd
Web browser and its version
Latest version
Operating system and its version
Latest version
PDF.js version
2.11.338
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
SetIterator cannot find name did you mean iterator in node_modules/pdfjs-dist/types/web/pdf viewer.d.ts
What is the expected behavior?
Need to resolve that iterator issue
What went wrong?
Need to resolve that iterator issue
Link to a viewer
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: