New Angular installation fails to serve #17712
-
What version of Tailwind CSS are you using? v4.1.4 What build tool (or framework if it abstracts the build tool) are you using? Angular v18.2.1 (but same behaviour on v19.x) What version of Node.js are you using? v22.13.1 (same issue on v22.14.0) What browser are you using? Chrome v135.x.x What operating system are you using? Windows Reproduction URL Describe your issue When exactly following the official guide (https://tailwindcss.com/docs/installation/framework-guides/angular) to install Tailwind with Angular, step 5 (
We first tried it in an existing Angular project which is running v19.x but it gave the same error. Afterwards we tried it with a completely new project by following the official guide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your |
Beta Was this translation helpful? Give feedback.
Your
.postcssrc.json
file is encoded with UTF-8 with BOM. The BOM is what seems to be tripping up the Angular build system. Consider re-saving the file with UTF-8 encoding (without BOM).