Fixing differences between prod and dev build (Next.js) π
Next.js seems to apply CSS modules differently on a route transition in production, which makes it difficult to use together with framer-motion π€·ββοΈ Switched to styled-jsx
Maximilian Torggler
Author
I just realized framer-motion doesn't play well with styled-jsx π€¦ββοΈ
Maximilian Torggler
Author
Yea there seems to be happening too much performance "magic" under the hood, and it gets even funnier when those things just happen in production. It suddenly occurred when updating to version 9.5.5, before it worked fine. What a pitty, I really like my CSS in CSS files
Please sign in to leave a comment.