#PostCSS config file is not loading.

2 messages · Page 1 of 1 (latest)

karmic nova
#

I tried to follow the basic example of adding PostCSS plugins in the docs: https://docs.astro.build/en/guides/styling/#postcss

The only errors I’m getting are “Missing peer” for postcss and typescript when installing PostCSS plugins. I am using TailwindCSS if that’s relevant.

According to the docs, Vite should simply grab my postcss.config.cjs file and apply it out-of-the-box. What am I missing?

Astro Documentation

Learn how to style components in Astro with scoped styles, external CSS, and tooling like Sass and PostCSS.

#

Alright, it appears that nesting actually is working, however I am still getting a console error from [vite:css] about nesting plugins needing to be enabled before tailwindcss. Any ideas why I’m still getting this?