CSS not rendering on Vercel deploy, but works locally

Hi everyone,
I’m having an issue where my Next.js + Tailwind project renders CSS fine locally, but when I deploy to Vercel, the styles are missing.
Here’s what I’ve tried / observed:

  • Framework: ts-nextjs-tailwind-starter
  • Repo: my project
  • Local dev (pnpm dev) → works fine, CSS loads correctly.
  • On Vercel build logs:
    • It compiles successfully (✓ Compiled successfully in 5.0s)
    • But I get warnings:
      Ignored build scripts: @tailwindcss/oxide, sharp, unrs-resolver.
      Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
      
  • I tried:
    • Running pnpm approve-builds locally (but it says no packages awaiting approval).
    • Switching package managers (npm, yarn).
    • Editing pnpm-lock.yaml to manually allow buildScripts for @tailwindcss/oxide, sharp, and unrs-resolver.
    • Deleting husky (was part of the starter template).
  • Still, the deployed site has no Tailwind styles.
    System info:
  • OS: Arch Linux
  • pnpm: v10.14.0 (used on Vercel too)
  • Next.js: v15.5.2
  • TailwindCSS: latest (via starter template)
    Has anyone run into this issue with pnpm build script approvals on Vercel?
    Do I need to configure vercel.json, postinstall, or something in pnpm-workspace.yaml for Tailwind’s oxide binary to run?
    Any help would be much appreciated

Hey @ms-solly,

Welcome to the Vercel community!

Quick question: are you using the .npmrc file by any chance?

After reviewing the error message above, I wasn’t able to gather all the required information.

Let’s discuss this in more detail.

Best,
Chintan

[chintan.com]

yeah, i just saw i am using it. its deprecated now, that might be causing conflicts ? should i dlt it?

i dlted it and still css not rendered . what might be issue?

hey i redeployed it and its working now . thanks

1 Like

Thanks for jumping in here, @techchintan!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.