Skip to content

Setup Tailwid in JetBrains IDE is missing vital info #48

Description

@kwiat1990

I wanted to setup Tailwind using CLI in my project but after following steps from the starter kit I encountered issues:

postcss-import: <path-to-tailwindcss>tailwindcss:105:78: Unclosed bracket

The language server is trying to parse the standalone CLI binary as CSS. When it resolves @import "tailwindcss" in tailwind.css, it finds the tailwindcss binary file sitting in the project root before it finds node_modules/tailwindcss. Pretty wild error. After renaming the binary to something else than tailwindcss it does indeed work correctly.

Also I found confusing the part that Tailwind has to be installed via npm in the project in order the Tailwind LSP to work. It wasn't clear at first to me that is necessary but a look at .gitignore helped me re-consider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions