Open mydearxym opened 11 months ago
Am facing the same issue with Next 14. Commenting to follow
Anyone solved this yet? Would be great to see a reference implementation.
Was only able to get it with page routing and next.js 14 using https://www.npmjs.com/package/next-with-linaria. Once I started to use app routing, this method no longer worked. I ended up switching Linaria over to Emotion. Implementation and import names are compatible so there was almost zero re-work. I know the bundle size implication of Emotion but due to the variety of our components (small), we chose to eat the cost as a trade-off for next.js 14 compatibility. I would have liked to have both but it's not within my pay grade to ensure compatibility between the two.
anyone can work with next 14 app router and linaria?
I think there needs to be an SWC plugin. There was one but currently outdated: https://github.com/arendjr/linaria-swc
hi team,
recently i try to replace styled-component with linaria, but css seems not work.
Environment
minimal Nextjs@14 with latest Linaria@6
.babelrc:
wyw-in-js.config.js
next.js config
related packages:
Description
project is running, but seems Linaria only recognized element tag, the CSS rules are not apply to it
Reproducible Demo
https://github.com/groupher/wyw-demo