-
Notifications
You must be signed in to change notification settings - Fork 167
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
Unhandled Promise rejection: Promise.withResolvers is not a function #2301
Comments
Which browser are you using? According to https://caniuse.com/?search=promise.withResolvers, browser support should be pretty good - with the exception of Safari: only the latest version of Safari supports this method. |
Currently I'm using Chrome! |
Yes, you're right - I was blind yesterday, I should have seen it from your screenshot. Which version are you using? |
i'm using latest version! exactly it's 124.0.6367.61 |
That's weird. Nonetheless, the |
Ok, I hope you will find the cause and I will also try to find the cause |
The improvement is going to land with version 20.0.0-alpha.2. |
Version 20.0.0-alpha.2 was buggy. It always used the ES5 version of the code. Version 20.0.0-alpha.3 uses a more clever approach. |
Hey @stephanrauh, unfortunately we still have trouble with this on safari. We tested this on Safari 15.6, 16.5 and 17.4. 17.4 works, but both older Browsers don't work. It seems like zoneJS is messing things up here. When zoneJS is monkey patching the browser apis it's also monkey patching the 'withResolvers'-Function. So the function is not undefined any more, but still throws the error when invoked. Is there any chance to fix this? Thank you! |
@SimonKunz That's nasty. We have to talk serious with zone.js! :) Jokes aside, I'm sure there's a way to solve it, but I'd like to talk you into finding the solution yourself and send me a pull request or to describe what I need to modify. I believe it's a task you can manage, and it helps me to catch up with the work that piled up during my vacations. Browser detection happens in a file called |
I am installing and testing version ^20.0.0-alpha.1 and see the error as shown in the picture:
![image_2024_04_17T08_29_24_951Z](https://private-user-images.githubusercontent.com/78024720/323143391-d55bae2a-b959-40d4-9bd4-aa63e0a15dab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNjI2MjUsIm5iZiI6MTcxOTI2MjMyNSwicGF0aCI6Ii83ODAyND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RXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2YmEyNzM3MTk2OGEwNjQ3ZTg1ODRiYzYzZGQ3YzJmY2EzYzMxOTE0YmNmOTFiOWNhNzA3NzAzMjY4YWIyOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HpP_NwuGHOK0lWoiZPBNVI1fhr2LTgBJAL7-W3xxwtg)
The text was updated successfully, but these errors were encountered: