Phpstrom tailwind css autocomplete stop work in laravel project

I create a brand new laravel project and install jetstream but tailwindcss auto complete is not working
how ever if you run `npm run build` command it will give you all of the classes from the build CSS file
NOTE: jetstream auto build your dependencies when you install for the first time so you must delete public/build directory because it might look like tailwindcss auto-complete but these are only class you already used in the project from the css file

评论操作 固定链接

Are you using tailwindcss@3.2.*?

https://youtrack.jetbrains.com/issue/WEB-57745/Tailwind-no-completion-when-using-tailwindcss320-Cannot-read-properties-of-undefined-reading-modifier is fixed, the fix is available in the 2022.3 Beta.

As a workaround, please try downgrading tailwindcss to version 3.1.8

0
评论操作 固定链接

Elena Pogorelova no i am using tailwind css 3.1.8

 

0
评论操作 固定链接

please add #com.intellij.lsp and #com.intellij.tailwind to Help | Diagnostic Tools | Debug log settings..., restart, reproduce the problem and attach the idea.log file (Help > Show Log in ...), your package.json and a screenshot of Settings | Languages & Frameworks | Node.js and NPM page

0
评论操作 固定链接

hi elena Pogorelova sorry for the late relpy for some reason my comment was at pending approval so i deleted that and now i am commenting again

here is my package.json file screenshot

0
评论操作 固定链接

And here my node and npm Page Screen Shot also the log file comment is in pending approval

0
评论操作 固定链接

by the way i also get this error

Tailwind CSS: Cannot read properties of undefined (reading 'modifier')
0
评论操作 固定链接

You must be using using tailwindcss@3.2.* then, this issue (https://youtrack.jetbrains.com/issue/WEB-57745/Tailwind-no-completion-when-using-tailwindcss320-Cannot-read-properties-of-undefined-reading-modifier) is not repeatable with 3.1.8... Please re-check your installed version

0
评论操作 固定链接

Elena Pogorelova thnx I uninstall tailwind and install it back with
`npm install -D tailwindcss@3.1.8` and it started working

1

请先登录再写评论。