Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Tailwind Css Vite build warning #16023

Closed
dev-patricksampson opened this issue Jan 29, 2025 · 0 comments
Closed

Tailwind Css Vite build warning #16023

dev-patricksampson opened this issue Jan 29, 2025 · 0 comments

Comments

@dev-patricksampson
Copy link

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(),

@tailwindlabs tailwindlabs locked and limited conversation to collaborators Jan 31, 2025
@philipp-spiess philipp-spiess converted this issue into discussion #16119 Jan 31, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant