-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Compilation Issue with Adobe Spectrum / React Aria #7851
Comments
Sounds like a Vite configuration thing. Maybe something like https://github.com/hi-ogawa/vite-plugins/tree/main/packages/ssr-css should be used? What have you tried or what have you found in searching the web? Did any of it change the error message you saw. Sounds like the conversation should be continued here vikejs/vike#791 as I don't see a resolution there, but maybe someone just forgot to post their findings. It'd be helpful if the error was included in the report as well as a stackblitz or something to reproduce the issue. |
This issue is likely to happen with every Vite-based framework.
Quoting https://vike.dev/broken-npm-package#why. Once Vite starts using Rolldown instead of Rollup, Vite may (I guess) change its default behavior which would solve this issue. In the meantime, I'd recommend library authors to remove CSS imports from their server-side builds. (I understand this can conflict with Next.js's server-first vision.) For Vite-based framework users a workaround they can use today is described at https://vike.dev/broken-npm-package#err-unknown-file-extension. |
Provide a general summary of the issue here
Background
I would like to bring attention to a bug that was previously reported in 2023 regarding the compilation issues when using Adobe Spectrum or React Aria with Vike.
Issue Description
The bug seems to affect the ability to use Vike in both Server-Side Rendering (SSR) and pre-rendering scenarios when integrating with Adobe Spectrum or React Aria.
Questions
Additional Information
If there are any workarounds or updates regarding this issue, I would appreciate any guidance or documentation that could help clarify the current status.
Thank you for your attention to this matter!
VIKE
🤔 Expected Behavior?
Processing the css that is imported by @adobe/react-spectrum
😯 Current Behavior
It seems like vite is not processing the css that is imported by @adobe/react-spectrum and it's getting passed to node which then, understandably, cant process it.
Is there something I am missing in the configuration to get this to work? With next.js, @adobe/react-spectrum recommends transpiling the library in next.config.js . Does vite-plugin-ssr need something similar? From reading the docs I got the impression that it should handle css like this automatically.
💁 Possible Solution
Ref Vike
🔦 Context
No response
🖥️ Steps to Reproduce
Version
Ubuntu
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Ubuntu 24
🧢 Your Company/Team
Bluecornflakes
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: