Tailwind classes not applied in Angular 19.2, Tailwind 4.0, Cypress 14 #31444
Replies: 1 comment
-
It seems you are using primeng on top. I had a similar problem - maybe the same.
The cli is used to generate a compiled version of the styles.scss before cypress is launched by extending the start script in
Then, in my
I hope I mentioned everything that was existential to get the component tests running. Btw: Do not use // comments on your styles.scss as the tailwind compiler generates a one liner for the whole file. That means, putting a // anywhere causes the rest of the file being part of the comment! Edit: As I wrote the example, I actually updated my code form prime-icons 6 to 7 and encountered some issues later with the way to import the icon styles. Different from the documentation it works for me by not importing it in the scss but putting it in the styles of the build options. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Any ideas on what's missing to get Tailwind 4.0 classes working with Component Testing?
Styles are compiled and pulled, see screenshot below, and all non-Tailwind classes seem to work as expected.
Tailwind classes not applied
Stack
styles.scss
Beta Was this translation helpful? Give feedback.
All reactions