tailwindlabs / tailwindcss-intellisense

Intelligent Tailwind CSS tooling for Visual Studio Code
2.74k stars 181 forks source link

TypeError: Cannot read properties of null (reading 'getClassList') #990

Closed alexander-doroshko closed 1 day ago

alexander-doroshko commented 1 week ago

I tried JetBrains Tailwind CSS plugin with the just released @tailwindcss/language-server version 0.0.18. It works fine with the tailwindcss package versions 3.4.4 and 4.0.0-alpha.16. But with the latest insiders version 0.0.0-insiders.0de1f0c I'm getting an error:

TypeError: Cannot read properties of null (reading 'getClassList')
at b (tailwindcss-language-server:2918:15469)
at async A (tailwindcss-language-server:2918:8248)
at async Object.$ [as tryInit] (tailwindcss-language-server:2918:8133)
at async rv._initFolder (tailwindcss-language-server:2920:21855)
at async Promise.allSettled (index 0)
at async rv._init (tailwindcss-language-server:2920:16960)
at async rv.init (tailwindcss-language-server:2920:16386)
JohnGemstone commented 2 days ago

Yep I had the same error! But I was only on insider for the new text-wrap types: text-balance text-pretty. Moving over to 3.4.4 fixed it.

thecrypticace commented 1 day ago

I'll get a release out soon — if not today then possibly tomorrow.