Next.js Discord

Discord Forum

StylesComponets does not work correctly in SSG

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
In my team we created a library using styles componet , there are all our components. We use the library in our next js project in version 13 using "yarn". Our pages use "getStaticProps". The problem is when we compile the project and the pages take a few seconds to load the styles.
Add a picture of how we are importing the components. When we use ssr: false , apparently the problem is solved but now we notice that at the DOM level there is no html content of the sections that are supposed to be static pages.

0 Replies