0

I am using "linaria": "^4.1.10" and "next-linaria": "^0.11.0" in my Next.js app. I have followed the configuration on this repo. In my app the pages which are not using getServerSideProps are working fine with above configuration, but the pages having SSR approach are not working fine.

Errors such as Cannot read properties of undefined (reading 'localeCompare'), EvalError: Cannot read properties of null (reading 'spawn') comes up in the SSR components during build time.

Any help with the setup of Linaria with Next.js for SSR pages will be amazing to have. Or if you guys can point me to the correct docs.

I have tried the other setup on the Linaria docs, I have also tried the Next.js Example for Linaria.

Nothing seems to work for me.

shivamragnar
  • 383
  • 2
  • 10

0 Answers0