Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
Selector ":global" is not pure error with next js build

I'm migrating my current React project to Next.js. And I am getting an error saying

error - ./styles/base/_base.module.css:3:1
Syntax error: Selector ":global" is not pure (pure selectors must contain at least one local class or id)

These are basically a few global styles that I use almost everywhere in the app plus a few browser resets. So I think it's a good idea to make these styles global. It used to work fine in my React app, but the Next build system is not okay with this. I found a solution on github issues. The build system has stopped complaining after that, but it omits all my global styles now. Not sure what am I missing here.

Here is the link to my next.config.js and _app.js

It's been a long while, but I can't find what am I missing here.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda