You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into a bug that prevents from deploying on Cloudflare Workers due to getColorDepth being improperly polyfilled. Polyfill should probably be updated but this seems like something that can silently fail as its only for colors.
I ran into this when trying to use gmail API and it looks like others have also ran into this.
The text was updated successfully, but these errors were encountered:
LSeuffert
changed the title
Don't fail isEnabled if color depth not available.
Prevent CloudFlare Workers breakage if getColorDepth is not available
Apr 26, 2025
@feywind It's the stream.getColorDepth() > 2 check.
Just for context, it throws Uncaught TypeError: Cannot convert object to primitive value because the Cloudflare Worker environment doesn't have process.stderr and mocks it instead. So, that's why we're getting an object back from getColorDepth.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.===
Ran into a bug that prevents from deploying on Cloudflare Workers due to getColorDepth being improperly polyfilled. Polyfill should probably be updated but this seems like something that can silently fail as its only for colors.
I ran into this when trying to use gmail API and it looks like others have also ran into this.
googleapis/js-genai#324
https://www.answeroverflow.com/m/1355156041402421248
Not sure if there's a better way to patch this but here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: