You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I get it working by first installing NextJS 14 with React 18 and migrating to NextJS 15 with React 19. I'll explain steps below when I got intellisense working vs when it was not working as a summary.
Steps when intellisense does not work!
Not Working
Whenever I tried installing NextJS 15 and changing something inside tailwind.config.ts
Installing NextJS 15 with Tailwind
Installing NextJS 15 without Tailwind and add additional packages
Steps when intellisense is working!
Working
Install NextJS 14 with npx create-next-app@14
1.1. Basically the default configuration, typescript, tailwind, app folder, src folder, no turbo, no changing paths
Install zustand with npm install zustand
Install shadcn with npx shadcn@latest init
Install tailwind class formatting with npm i prettier-plugin-tailwindcss --save-dev
Here I update a few things:
Update tailwind.config.ts by adding spacing: { 5.25: rem(21), } property to theme.extend
I create helper class for converting px to rem and call it inside tailwind config and I use it to add a new spacing, 5.25: rem(21)
Basically when I import the function as shown the intellisense is not working
import{rem}from"**@/lib/utils";
But when I change the import to the following intellisense it works- (No Idea Why)
import{rem}from"./src/lib/utils";
I also had an issue where tsconfig.json paths were not working so I had to add "baseUrl": "." to tsconfig.json
Now I migrate to NextJS 15 with npx @next/codemod@canary upgrade latest
6.1. I follow the instructions and install everything it asked me to.
Here I tested intellisense again and it works. I tested trying the following:
Reloading window
Adding new properties tailwind.config.ts
Exiting VSCode and opening again
UPDATE:
When I have color and borderRadius properties in theme.extend the intellisense works. (I've started with this included in the basic setup but I thought it irrelevant until now)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Got it working in UPDATE 2
I've narrowed it down to plugins property. Whichever plugin I put there the intellisense is not working.
Important
Info about versions
VS Code version
Tailwind CSS IntelliSense version
Tailwind CSS version
Package manager
Operating system
Tailwind config
UPDATE 2:
First of all, I get it working by first installing NextJS 14 with React 18 and migrating to NextJS 15 with React 19. I'll explain steps below when I got intellisense working vs when it was not working as a summary.
Steps when intellisense does not work!
Not Working
Whenever I tried installing NextJS 15 and changing something inside tailwind.config.ts
Steps when intellisense is working!
Working
npx create-next-app@14
1.1. Basically the default configuration, typescript, tailwind, app folder, src folder, no turbo, no changing paths
npm install zustand
npx shadcn@latest init
npm i prettier-plugin-tailwindcss --save-dev
spacing: { 5.25: rem(21), }
property totheme.extend
5.25: rem(21)
"baseUrl": "."
to tsconfig.jsonnpx @next/codemod@canary upgrade latest
6.1. I follow the instructions and install everything it asked me to.
tailwind.config.ts
UPDATE:
When I have color and borderRadius properties in
theme.extend
the intellisense works. (I've started with this included in the basic setup but I thought it irrelevant until now)Code
But when I add property
spacing
totheme.extend
the intellisense is not working.Code
Beta Was this translation helpful? Give feedback.
All reactions