I wanted to setup Tailwind using CLI in my project but after following steps from the starter kit I encountered issues:
postcss-import: <path-to-tailwindcss>tailwindcss:105:78: Unclosed bracket
The language server is trying to parse the standalone CLI binary as CSS. When it resolves @import "tailwindcss" in tailwind.css, it finds the tailwindcss binary file sitting in the project root before it finds node_modules/tailwindcss. Pretty wild error. After renaming the binary to something else than tailwindcss it does indeed work correctly.
Also I found confusing the part that Tailwind has to be installed via npm in the project in order the Tailwind LSP to work. It wasn't clear at first to me that is necessary but a look at .gitignore helped me re-consider.
I wanted to setup Tailwind using CLI in my project but after following steps from the starter kit I encountered issues:
The language server is trying to parse the standalone CLI binary as CSS. When it resolves
@import "tailwindcss"intailwind.css, it finds thetailwindcssbinary file sitting in the project root before it findsnode_modules/tailwindcss. Pretty wild error. After renaming the binary to something else thantailwindcssit does indeed work correctly.Also I found confusing the part that Tailwind has to be installed via npm in the project in order the Tailwind LSP to work. It wasn't clear at first to me that is necessary but a look at
.gitignorehelped me re-consider.