Skip to content

PostCSS warning: plugin does not pass from option to postcss.parse with Vite + Tailwind CSS 4 #20452

Description

@Codeer22

Describe the bug
When running a Vite + React application in development mode with Tailwind CSS v4 and the @tailwindcss/postcss plugin, Vite prints the following warning during CSS processing:

A PostCSS plugin did not pass the from option to postcss.parse. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.

The development server starts successfully and the application loads, but the warning is consistently displayed when running npm run dev.

Environment
OS: Windows
Build tool: Vite
Vite: 8.2.2
Tailwind CSS: 4.3.3
@tailwindcss/postcss: 4.3.3
PostCSS: 8.5.26
Autoprefixer: 10.5.4
React: 19.2.8
TypeScript: 7.0.2
Package manager: npm

PostCSS configuration
export default {
plugins: {
"@tailwindcss/postcss": {},
},
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions