Heya I have a issue with tailwind on preview/production. I am compiling tailwind on the api, it works fine on my local environment, but on preview and I am assuming production. I get this error "ENOENT: no such file or directory, open '/var/task/node_modules/tailwindcss/lib/css/preflight.css'"
Current versus Expected behavior
I except my tailwind styles to generated from the provided classes.
However I receive this error "ENOENT: no such file or directory, open '/var/task/node_modules/tailwindcss/lib/css/preflight.css'"
It is a similar issue to this Github discussion on the Vercel repo https://github.com/orgs/vercel/discussions/4004
Code, configuration, and steps that reproduce this issue
The Github discussion contains my exact problem.
Project information
Environment ( preview, production):Project Framework: Next.jsBuild Settings: Framework Preset: Build Command (if not default): Output Directory (if not default): Install Command (if not default):Node/Runtime Version: 20.13.1Package Manager: pnpm@9.7.1Relevant Packages: tailwindcss