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

401
Visualizações
Tailwind Not Working in Production Mode with Next.js

The following tailwind className assignment works correctly when running the server in development mode:

<Link href='#pop' className='w-full text-black no-underline'>

Specifically, the class no-underline becomes

text-decoration-line: none;

as shown by the Chrome dev tools.

When I run the following from the command like

NODE_ENV=production npm run build && npm start  

now the same element has

text-decoration: underline;

This results in a UI bug where the anchor tag is no longer rendering correctly, as it did in development.

// tailwind.config.js

module.exports = {
  content: [
    './pages/**/*.{js,ts,jsx,tsx}',
    './components/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};
// postcss.config.js

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
/* global.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    height: 100vh;
  }
  .section-title {
    @apply font-bold pb-3 text-2xl;
  }
  .section {
    @apply py-6;
  }

  .discog-box {
    @apply bg-white p-3 flex content-center flex-col;
  }

  .text-shadow-custom {
    text-shadow: 2px 2px 4px #000;
  }
}

There are several other tailwind className assignments that are not working correctly. For this reason, when I deploy my app to Vercel, in this case, the UI is totally broken: https://tunester-8f737wgsk-currenthandle.vercel.app/

https://github.com/currenthandle/tunester/blob/no-moralis/components/IndexPageSideBar.js#L18

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