Skip to content

Fix path reference in nuxt.config.ts#2512

Open
gyohza wants to merge 1 commit into
tailwindlabs:mainfrom
gyohza:docs/fix-nuxt-config-path-format
Open

Fix path reference in nuxt.config.ts#2512
gyohza wants to merge 1 commit into
tailwindlabs:mainfrom
gyohza:docs/fix-nuxt-config-path-format

Conversation

@gyohza

@gyohza gyohza commented Jul 23, 2026

Copy link
Copy Markdown

Fix failing Nuxt configuration path reference

When installing Tailwind in Nuxt 4, the guide tells us to add ./app/assets/css/main.css to the nuxt.config.ts. This, however, results in an error:

image image _(I apologize in advance for the light theme)_

The fix

Did some tests and it seems ./ defaults to inside the app/ directory. Changing to ./assets/css/main.css (app/ removed) fixed the problem. Using ~/assets/css/main.css and assets/css/main.css also work, and it's actually a little more idiomatic:

image

See official docs.

Notes

I deliberately rephrased the instruction so I could fit a reference to the Nuxt docs + added a comment to the code snippet explaining that assets is an alias.

Please let me know whether you think that makes sense or if you want to request some changes.

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

@gyohza is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps

greptile-apps Bot commented Jul 24, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The documentation change keeps the CSS file creation location intact while updating the Nuxt configuration reference to the path reported to resolve correctly in Nuxt 4.

Reviews (1): Last reviewed commit: "Fix path reference in nuxt.config.ts" | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant