You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to use Tailwindcss v4 with Angular 19+ (using the new esbuild builder), it is necessary to create a postcss.config.json file, because Angular seemingly fails to consume any other variant of a postcss config (e.g. in the package.json, or using a postcss.config.mjs).
Error: It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.
Once the postcss.config.json is provided - and both ng serve, ng test and ng build run smoothly, Storybook fails to compile for the same reason, as the builder (under the hood) seemingly fails to consume said postcss config.
Error: It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.
This is using the Webpack builder. I am aware that there is a plugin that tries to get Angular to run under Storybook using vite.
The issue does not occur when using analogjs's angular vite plugin for the Storybook - however, I haven't been able to get the analogjs plugin to run properly in it's completion. I managed to get it to compile, though it seemingly fails to load Tailwindcss and Angular Material to begin with - so that isn't really a sustainable workaround, yet. Will update this once/if I get it to run.
The text was updated successfully, but these errors were encountered:
Describe the bug
In order to use Tailwindcss v4 with Angular 19+ (using the new esbuild builder), it is necessary to create a
postcss.config.json
file, because Angular seemingly fails to consume any other variant of a postcss config (e.g. in the package.json, or using apostcss.config.mjs
).Installing Tailwindcss v4 with postCSS: https://tailwindcss.com/docs/v4-beta#installing-with-post-css
Trying to compile the angular app, without this postcss.config.json file present, will result in
Once the postcss.config.json is provided - and both ng serve, ng test and ng build run smoothly, Storybook fails to compile for the same reason, as the builder (under the hood) seemingly fails to consume said postcss config.
This is using the Webpack builder. I am aware that there is a plugin that tries to get Angular to run under Storybook using vite.
Reproduction link
https://github.com/SeraphCoding/AngularTW4SBVite
Reproduction steps
yarn run storybook
System
Additional context / WIP Workaround
The issue does not occur when using analogjs's angular vite plugin for the Storybook - however, I haven't been able to get the analogjs plugin to run properly in it's completion. I managed to get it to compile, though it seemingly fails to load Tailwindcss and Angular Material to begin with - so that isn't really a sustainable workaround, yet. Will update this once/if I get it to run.
The text was updated successfully, but these errors were encountered: