Skip to content

Issue with presets? #333

Closed
Closed
@barnabasmolnar

Description

@barnabasmolnar

Hey there,

First of all, great work on the extension Brad, love the effort and care that goes into tailwind tooling.

Lately, however, in some of my projects, the VSCode extension stopped working entirely.

Given a preset like this:

presets: [require('./node_modules/...path-to-tailwind-config.js...')]

the extension does not seem to work at all for the entire project. Please note that I have JIT mode enabled in the config that resides in node_modules. Tailwind and the JIT mode themselves work perfectly without issues, it's just that the extension probably can't pick up the preset config from gitignored folders?

Output from the extension:

Found Tailwind CSS config file: ...path/tailwind.config.js
Loaded postcss v8.2.15: ...path/node_modules/postcss
Loaded tailwindcss v2.1.2: ...path/node_modules/tailwindcss

warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions