Skip to content

Autocomplete not working in apps directory with Tailwind v4 and plugin version 0.14.17 on Next.js Turborepo #1377

Open
@addegbenga

Description

@addegbenga

What version of VS Code are you using?

v1.100.2

What version of Tailwind CSS IntelliSense are you using?

For example: v0.14.17

What version of Tailwind CSS are you using?

v4.0.8

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind config

/** @type {import('postcss-load-config').Config} */
const config = {
  plugins: { "@tailwindcss/postcss": {} },
};

export default config;

VS Code settings

{}

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.

Describe your issue

I am using Tailwind CSS v4 on a Next.js Turborepo project. Autocomplete only works in my packages/ui directory but does not work in my apps directory. After further investigation, I discovered that this bug was introduced in the latest plugin version: 0.14.17. Autocomplete works as expected with version 0.14.16.

Steps to Reproduce

  1. Set up a Next.js Turborepo with Tailwind v4.
  2. Update the plugin to version 0.14.17.
  3. Observe that autocomplete only works in packages/ui but not in apps.
  4. Downgrade the plugin to 0.14.16 and see that autocomplete works in both directories.

Expected Behavior

Autocomplete should work in both packages/ui and apps directories regardless of the plugin version.

Actual Behavior

Autocomplete only works in packages/ui when using plugin version 0.14.17. It does not work in apps.

Additional Context

  • Tailwind CSS v4
  • Next.js Turborepo structure
  • Plugin: 0.14.17 (broken), 0.14.16 (works)

Please let me know if more information is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions