Tailwind .ts config file intellisense not working

When I have tailwind.config.ts from the default t3 create, even with the right extensions installed the intellisense isn't working. There are actually typescript linting errors in the file like saying the import isnt used. Has anyone found a fix to this? I've fixed this by switching the .ts config to a .cjs one
3 Replies
coiz
coiz10mo ago
I have the same issue, but I'm using a jetbrains IDE. Are you on vscode?
Endgame1013
Endgame101310mo ago
I’m not sure what specific errors OP was getting, but I know this has been an issue between various versions of both tailwindcss and typescript in the past: https://github.com/tailwindlabs/tailwindcss/issues/10891
GitHub
tailwind.config.ts (TypeScript) not working · Issue #10891 · tailwi...
What version of Tailwind CSS are you using? 3.3.0 What build tool (or framework if it abstracts the build tool) are you using? webpack 5.76.3, postcss 8.4.21, What version of Node.js are you using?...
Endgame1013
Endgame101310mo ago
If you have specific error messages, I would suggest checking the issues section on Tailwind’s GitHub repository.
Want results from more Discord servers?
Add your server