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 version3.1.8
Elena Pogorelova no i am using tailwind css 3.1.8
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 ...), yourpackage.json
and a screenshot of Settings | Languages & Frameworks | Node.js and NPM pagehi 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
And here my node and npm Page Screen Shot also the log file comment is in pending approval
and here is the log file link
https://fastupload.io/en/a2MSB43u4aZAlcf/file
by the way i also get this error
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 with3.1.8
... Please re-check your installed versionElena Pogorelova thnx I uninstall tailwind and install it back with
`npm install -D tailwindcss@3.1.8` and it started working