linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Styles only get built every now and then (Next.js)

Open hyoretsu opened this issue 3 years ago • 2 comments

Environment

  • Linaria version: 2.1.0
  • Bundler (+ version): Webpack 5 (Next.js 11.0.1)
  • Node.js version: 14.16.0
  • OS: Ubuntu 20.04

Description

When using styled from next/linaria, sometimes I have to trigger a re-compile 3 times, sometimes only 1, sometimes more for it to actually compile the updated CSS.

hyoretsu avatar Jun 30 '21 20:06 hyoretsu

Hi @hyoretsu! Could you please provide a sample code that can show this behaviour?

Anber avatar Jul 11 '21 08:07 Anber

I'm not quite sure as to what exactly is causing that behavior, but it's happening while I develop this https://github.com/hyoretsu/aufklarung-site

hyoretsu avatar Jul 11 '21 11:07 hyoretsu