Skip to content

Intellisense won't work #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wdsrocha opened this issue Aug 15, 2020 · 2 comments
Closed

Intellisense won't work #170

wdsrocha opened this issue Aug 15, 2020 · 2 comments

Comments

@wdsrocha
Copy link

Sorry to bother, but I'm clueless why the intellisense won't work.

As required, I've added tailwindcss": "^1.6.2" on my package.json using yarn and I also have the tailwind.config.js file, with the following content:

module.exports = {
  theme: {},
  variants: {},
  plugins: [],
  purge: ["./pages/**/*.tsx", "./components/**/*.tsx"],
};

I'm using React with Typescript, so after checking issues #72 and #118 I added the following to my VSCode configuration as well

  "tailwindCSS.includeLanguages": {
    "typescript": "javascript",
    "typescriptreact": "javascript"
  },

Besides that, I'm using PostCSS, if that matters. More details can be found at the source: https://github.com/wdsrocha/dojo/tree/tailwind-issue

But even after multiple reloads and tweaks here and there, it just won't work. What am I missing? 🤔

@magicmark
Copy link

I got it to work using this:

  "tailwindCSS.includeLanguages": {
    "typescript": "html",
    "typescriptreact": "html"
  }

@wdsrocha
Copy link
Author

Thanks @magicmark, but it wasn't that.

After checking out that intellisense didn't even worked for https://github.com/tailwindlabs/tailwindcss-playground, I realized that maybe there was something wrong with my environment.

And shamefully, I noticed that my VSCode was very outdated, which was the cause for the tailwindcss-intellisense extension to fail silently. 🤦

Now it is working just fine, thanks. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants