Plugin: vite:css
File: /_astro/ec.1hqjb.css?direct:undefined:NaN
at Object.statSync (node:fs:1681:10)
at OnceExit (C:\1.Santanu\PLAYGROUND\2024-Sep-25\node_modules\.pnpm\@tailwindcss+postcss@4.0.0-alpha.33\node_modules\@tailwindcss\postcss\dist\index.js:1:2675)```
If I comment out ** ExpressiveCode **in my **astro.config.mjs** all works fine. I know all my components are non stable release. just letting you guys know about the same.
#ExpressiveCode , tailwind v4 (alpha 33) , astro v5 (beta 6)
11 messages · Page 1 of 1 (latest)
@harsh river Any chance your repo or code is public?
Copying in @knotty matrix here as a heads up!
Sounds more like a postcss issue
This will probably occur with any virtual routes that serve CSS
Is it possible to disable PostCSS in your setup?
Thanks ; will set up a test environment with tailwind4 and Vite and let you know.
It might also be a Vite issue as it's showing vite:css as the plugin
Of course I can't rule out that I'm doing anything wrong either, but I think we first need to see where this error actually originates from 😄
@knotty matrix removed postcss and added vite for tailwind 4. And the problem is gone as you guessed.
pnpm uninstall @tailwindcss/postcss (removed postcss)
pnpm add -D @tailwindcss/vite@next(added vite)
Awesome! Thanks for getting back to us and even providing the commands to fix it!