-
SummaryDear fellow devs, I have deployed a Next.js project on Vercel but noticed that some css styles are not being applied, primarily flex related styles. For example, so essentially there is a display: flex and justify-content: space-between for the component but after deployed (or 'npm run build' and then 'npm run start'): the display: flex is missing when inspected: Wondering if anybody has encountered this before or knows the cause and how it can be solved. You may use this link https://github.com/yijiuntay/memory-game to clone the project and try to reproduce. Thanks in advance ❤ Additional informationNo response Example |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Seeing this when building locally too. Didn't copy your repo, but just the css bits that are affected. Strange... but i think I've seen this before, I'll give it a go at producing a minimal repro. Perhaps it is the nesting? |
Beta Was this translation helpful? Give feedback.
-
Same goes for me, |
Beta Was this translation helpful? Give feedback.
-
Version 14.1.0 still have this issue,some nested |
Beta Was this translation helpful? Give feedback.
-
I am having an issue where my Next.js project's css is applied when I run it locally, but when deployed on Vercel, no styles at all are applied. I am not a frond-end specialist. This is just a portfolio for Python jobs, and it looks hideous without styles. |
Beta Was this translation helpful? Give feedback.
-
You may try using sass, it is pretty much likely to work for you.
…On Mon, 7 Apr 2025 at 12:34, Aloukik Joshi ***@***.***> wrote:
@caocanx <https://github.com/caocanx> and @danidg2588
<https://github.com/danidg2588>
I am facing the same issue but my tech stack is based on React + Vite.
Will saas
<https://nextjs.org/docs/app/building-your-application/styling/sass> work
or is there any other solution?
—
Reply to this email directly, view it on GitHub
<#52018 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5UJAMLKS5RV74OC7RCJR4D2YKZKPAVCNFSM6AAAAABVGEZUZ6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENZVGQZTCMI>
.
You are receiving this because you were mentioned.Message ID: <vercel/next
.***@***.***>
|
Beta Was this translation helpful? Give feedback.
Seeing this when building locally too. Didn't copy your repo, but just the css bits that are affected. Strange... but i think I've seen this before, I'll give it a go at producing a minimal repro. Perhaps it is the nesting?