Making styled-components ready for ssr when npm run dev is run #1562
Replies: 1 comment
-
Yeah, it was on vite on production build hehe. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently when using styled-components in inertia ssr and running npm run dev, the build file contains the right data, including the styled-components and html elements, but viewing page source does not show the elements and the terminal throws an errors saying that styled is not defined when doing
php artisan inertia:serve
Here are the build assets

I am expecting a serverStyleSheet like what does styled does at next, but can seem to find any reference when using inertia. Maybe this is on vite?
Beta Was this translation helpful? Give feedback.
All reactions