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
I'm trying to use components from react-aria with preact/compat on the server (SSR) using astro (which internally uses vite@3 which recently switched to ESM for SSR). I realize this is a convoluted setup but it would be really nice to make this work. Currently it works perfectly on the client but errors on the server, and I opened a bug in the astro repo which led me here. withastro/astro#4107 (comment)
The text was updated successfully, but these errors were encountered:
It started as a bug report, it may end up as a feature we add. The same conversation though is happening there #2881 (comment) so it'd be better to keep the discussion there. Feel free to chime in on that thread.
Don't worry if you missed it with a search. Anyone who searches and finds yours instead will now find a link to the original. :)
🙋 Feature Request
Consider adding
exports
field to the package.json ofreact-aria
and all its subpackages.😯 Current Behavior
Currently there is no
exports
field, which means the package doesn't work in NodeJS + ESM environments.https://publint.bjornlu.com/react-aria@3.18.0
https://publint.bjornlu.com/@internationalized/string@3.0.0
💁 Possible Solution
https://nodejs.org/api/packages.html#exports
🔦 Context
I'm trying to use components from
react-aria
withpreact/compat
on the server (SSR) usingastro
(which internally usesvite@3
which recently switched to ESM for SSR). I realize this is a convoluted setup but it would be really nice to make this work. Currently it works perfectly on the client but errors on the server, and I opened a bug in the astro repo which led me here. withastro/astro#4107 (comment)The text was updated successfully, but these errors were encountered: