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
When deploying to Cloudflare Workers environment, the following issue happens since it's not support it:
Uncaught ReferenceError: FinalizationRegistry is not defined
at null.
(file:///[...]/@react-aria/utils/dist/packages/@react-aria/utils/src/useId.ts:29:16)
[code: 10021]
Thanks for reporting that. I'm not sure what else we can do here, except not use the FinalizationRegistry if it's not available. This would bring back the previously existing memory leak for those environments. Given that this is a serverless environment though, I guess the memory leak wouldn't matter because it's all new for every request and the leak would just be thrown away.
For now, you can patch-package so it doesn't break you.
Provide a general summary of the issue here
When deploying to Cloudflare Workers environment, the following issue happens since it's not support it:
Uncaught ReferenceError: FinalizationRegistry is not defined
at null.
(file:///[...]/@react-aria/utils/dist/packages/@react-aria/utils/src/useId.ts:29:16)
[code: 10021]
Related to cloudflare/workerd#2906.
🤔 Expected Behavior?
Should just work.
😯 Current Behavior
See above.
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
Deploy any RAC starter project with SSR to CF Workers and you'll see the error.
Version
RAC 1.7.0 / @react-aria/utils 3.28.0
What browsers are you seeing the problem on?
Other
If other, please specify.
Workers SSR
What operating system are you using?
/
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: