W
W
WizardW2020-04-28 10:28:09
React
WizardW, 2020-04-28 10:28:09

Why are styled-components not loading in NextJs?

Trouble with the work of styled-components in Nextjs.
When I change something in the code, the hotreload updates and loads the styles normally, when I refresh the page in the browser, a className mismatch error pops up and the styles are not loaded
. .babelrc is with the babel-plugin-styled-components plugin. _app and _document rewritten, as on off source
5ea7da3bb490b328434717.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question