-
Notifications
You must be signed in to change notification settings - Fork 219
V4 intellisense not working in a monorepo v0.12.9 and after #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @sibbng! Do you mind checking if the logs has any information on this? You can access it via View > Output and then picking the "Tailwind CSS IntelliSense" extension in the dropdown of the output module. |
Prior to creating the issue I checked output but couldn't see an error. I checked again, and apparently v0.12.9 has significantly longer output. v0.12.9 (not working) Locating server…
Booting server...
Setting up server…
Listening for messages…
Searching for Tailwind CSS projects in the workspace's folders.
{"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}
{"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}
{"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}
[Global] Creating projects: [{"folder":"C:\\Users\\user\\dev\\workup","config":"C:/Users/user/dev/workup/apps/web/client/src/main.css","selectors":[{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/main.css","priority":0},{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/**","priority":2},{"pattern":"C:/Users/user/dev/workup/apps/web/**","priority":4}],"user":false,"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}},{"folder":"C:\\Users\\user\\dev\\workup","config":"C:/Users/user/dev/workup/apps/web/client/src/themes.css","selectors":[{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/themes.css","priority":0},{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/**","priority":2},{"pattern":"C:/Users/user/dev/workup/apps/web/**","priority":4}],"user":false,"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}]
[Global] Preparing projects...
[Global] Initializing projects...
[apps\web\client\src\main.css] Initializing...
[Global] Adding watch patterns: C:/Users/user/dev/workup/apps/web/client/src/main.css, C:/Users/user/dev/workup/apps/web/client/src, C:/Users/user/dev/workup/apps/web/client, C:/Users/user/dev/workup/apps/web, C:/Users/user/dev/workup/apps, C:/Users/user/dev/workup, C:/Users/user/dev, C:/Users/user, C:/Users, C:/
[apps\web\client\src\main.css] supported features: ["css-at-theme","layer:base","content-list"]
[apps\web\client\src\main.css] Loaded tailwindcss v4.0.0-alpha.24: C:\Users\user\dev\workup\node_modules\.pnpm\tailwindcss@4.0.0-alpha.24\node_modules\tailwindcss
[apps\web\client\src\main.css] Building...
[apps\web\client\src\main.css] Initializing...
[apps\web\client\src\main.css] supported features: ["css-at-theme","layer:base","content-list"]
[apps\web\client\src\main.css] Loaded tailwindcss v4.0.0-alpha.24: C:\Users\user\dev\workup\node_modules\.pnpm\tailwindcss@4.0.0-alpha.24\node_modules\tailwindcss
[apps\web\client\src\main.css] Building...
[apps\web\client\src\main.css] Initializing...
[apps\web\client\src\main.css] supported features: ["css-at-theme","layer:base","content-list"]
[apps\web\client\src\main.css] Loaded tailwindcss v4.0.0-alpha.24: C:\Users\user\dev\workup\node_modules\.pnpm\tailwindcss@4.0.0-alpha.24\node_modules\tailwindcss
[apps\web\client\src\main.css] Building...
[apps\web\client\src\main.css] Initializing...
[apps\web\client\src\main.css] supported features: ["css-at-theme","layer:base","content-list"]
[apps\web\client\src\main.css] Loaded tailwindcss v4.0.0-alpha.24: C:\Users\user\dev\workup\node_modules\.pnpm\tailwindcss@4.0.0-alpha.24\node_modules\tailwindcss
[apps\web\client\src\main.css] Building...
[Global] Initialized 4 projects v0.12.8 (working) Locating server…
Booting server...
Setting up server…
Listening for messages…
Searching for Tailwind CSS projects in the workspace's folders.
{"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}
{"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}
[Global] Creating projects: [{"folder":"C:\\Users\\user\\dev\\workup","config":"C:/Users/user/dev/workup/apps/web/client/src/themes.css","selectors":[{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/themes.css","priority":0},{"pattern":"C:/Users/user/dev/workup/apps/web/client/src/**","priority":2},{"pattern":"C:/Users/user/dev/workup/apps/web/**","priority":4},{"pattern":"C:/Users/user/dev/workup/**","priority":5}],"user":false,"tailwind":{"version":"4.0.0-alpha.24","features":["css-at-theme","layer:base","content-list"],"isDefaultVersion":false}}]
[Global] Preparing projects...
[Global] Initializing projects...
[apps\web\client\src\themes.css] Initializing...
[Global] Adding watch patterns: C:/Users/user/dev/workup/apps/web/client/src/themes.css, C:/Users/user/dev/workup/apps/web/client/src, C:/Users/user/dev/workup/apps/web/client, C:/Users/user/dev/workup/apps/web, C:/Users/user/dev/workup/apps, C:/Users/user/dev/workup, C:/Users/user/dev, C:/Users/user, C:/Users, C:/
[apps\web\client\src\themes.css] supported features: ["css-at-theme","layer:base","content-list"]
[apps\web\client\src\themes.css] Loaded tailwindcss v4.0.0-alpha.24: C:\Users\user\dev\workup\node_modules\.pnpm\tailwindcss@4.0.0-alpha.24\node_modules\tailwindcss
[apps\web\client\src\themes.css] Building...
[Global] Initialized 1 projects |
After doing git bisect locally I found that the issue first appear on #1044 After blindy restoring some of the changes, I found that after adding the following removed /cc @thecrypticace |
Yep, I can confirm this same issue is affecting us too. This feels like a pretty significant bug. This being outside the main Tailwind repo, it would be great to confirm that the Tailwind team has eyes on this! |
I've stumbled across this issue as well and after debugging the extension i settled on a solution that works for us.
For reference this is a monorepo where the www app still uses tailwind 3.x and the product already uses tailwind 4 |
@sibbng Is this still a problem for you on the latest version of the extension? |
@thecrypticace It seems working as expected. For reference in my monorepo v4 was only Tailwind version used. |
Ah excellent! Gonna close this one then 👍 |
@sibbng @thecrypticace Hi, The issue still exists, im using monorepo setup from Shadcn with Nextjs app |
You might be running into #1412 which is a bug after 0.14.16. I'm hoping to get a release out on Monday with that fix. |
Uh oh!
There was an error while loading. Please reload this page.
What version of VS Code are you using?
v.1.93.1
What version of Tailwind CSS IntelliSense are you using?
0.12.9
Tried 0.12.10 and pre-release too
What version of Tailwind CSS are you using?
4.0.0-alpha.24
What package manager are you using?
pnpm
What operating system are you using?
Windows
Tailwind config
VS Code settings
Reproduction URL
I thought the issue is obvious, if it's not I would happily provide a repro.
Describe your issue
Hi, I'm using v4 in a monorepo and I have 2 issues:
1- Intellisense not working v0.12.9 and after (including pre-release)
2- v0.12.8 (working version) only working if I have
@config "path/to/tailwind.conf.ts"
in my css file. I thought config file is not mandatory in v4.Workaround
The text was updated successfully, but these errors were encountered: