How to use react-spectrum with Next.js #15242
-
I am trying to use react-spectrum with Next.js. Encountered this error Steps to reproduce
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Did you happen to take a look at https://err.sh/next.js/css-npm? It looks like react-spectrum imports CSS files itself. Currently Next does not support this as mentioned in the above link. So the steps outlined in there would be your best bet, otherwise this feature is being tracked here #12079 and the RFC is #15208 Or additionally this is being tracked in the react-spectrum repo here adobe/react-spectrum#760 |
Beta Was this translation helpful? Give feedback.
Did you happen to take a look at https://err.sh/next.js/css-npm? It looks like react-spectrum imports CSS files itself.
Currently Next does not support this as mentioned in the above link. So the steps outlined in there would be your best bet, otherwise this feature is being tracked here #12079 and the RFC is #15208
Or additionally this is being tracked in the react-spectrum repo here adobe/react-spectrum#760