Skip to content

Tailwind Css Vite build warning #16023

@dev-patricksampson

Description

@dev-patricksampson

My project is Solid.JS and it uses Vite/TailwindCSS. Before I used TailwindCSS 3 and migrated to v4. And while I running the build command, vite build and it generates build files. And I can see that warning in the build log

What version of Tailwind CSS are you using?

"@tailwindcss/vite": "^4.0.0",
"tailwindcss": "^4.0.0",

What build tool (or framework if it abstracts the build tool) are you using?

vite": "^6.0.11",

What version of Node.js are you using?

"@types/node": "^22.12.0",

What browser are you using?

Chrome

What operating system are you using?

Linux

Reproduction URL

A Tailwind Play link or 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.

A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.

Describe your issue

Attached my warning message while build

[plugin @tailwindcss/vite:generate:build] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

In the vite.config.js, if I remove tailwindcss(), it doesn't throw any warning. But I followed your migration guide.
return {
plugins: [
tailwindcss(),
solidPlugin(),

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