-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Unable to build with 4.1.392: error TS2304: Build:Cannot find name 'PromiseWithResolvers' #17932
Comments
Small investigation from my side: The method Promise.withResolvers is not yet supported by Node if you try to run it on the server side - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers#browser_compatibility |
Updated my post to include my node version. Using 20.12.2 (updated today after the issue started) and still seeing the issue as well. I have not tried a non-LTS version. When we revert back to v4.0.379 we also do not see the issue. Looks like we are both seeing the same thing. |
Please use the |
This issue seems related to TypeScript files under The Users must set A workaround on the users' side is to set A fix on PDF.js' side would be to set
|
While possibly not a long term fix with other potential breaking changes coming for node, there is a polyfill available for |
Attach (recommended) or Link to PDF file here:
Configuration:
Updated to the newest version and unable to build with Typescript. Something changed between 4.0 and 4.1. Are there new dependencies needed?
The text was updated successfully, but these errors were encountered: