Skip to content
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

[Bug] tailwindcss plugin support v4 #12911

Open
haiweilian opened this issue Feb 5, 2025 · 6 comments
Open

[Bug] tailwindcss plugin support v4 #12911

haiweilian opened this issue Feb 5, 2025 · 6 comments

Comments

@haiweilian
Copy link

haiweilian commented Feb 5, 2025

What happens?

tailwindcss 插件不支持 v4 版本。

Mini Showcase Repository(REQUIRED)

升级 tailwindcss 到 v4

TypeError: Cannot read properties of undefined (reading 'tailwind')
    at getTailwindBinPath (/Users//node_modules/.pnpm/@umijs+plugins@4.4.4_@babel+core@7.23.6_@types+react-dom@19.0.3_@types+react@19.0.8__@types+r_i4pfxhxgmqg6sv4h6i4irmckdu/node_modules/@umijs/plugins/dist/tailwindcss.js:105:44)

https://github.com/haiweilian/vivy-nest-admin/tree/main/vivy-react

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

升级 tailwindcss 到 v4

Expected behavior 1. 2.

TypeError: Cannot read properties of undefined (reading 'tailwind')
    at getTailwindBinPath (/Users//node_modules/.pnpm/@umijs+plugins@4.4.4_@babel+core@7.23.6_@types+react-dom@19.0.3_@types+react@19.0.8__@types+r_i4pfxhxgmqg6sv4h6i4irmckdu/node_modules/@umijs/plugins/dist/tailwindcss.js:105:44)

Context

  • Umi Version: 4.4.4
  • Node Version: 22.0.0
  • Platform: Mac
Copy link

github-actions bot commented Feb 5, 2025

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2025
@github-actions github-actions bot reopened this Feb 5, 2025
@timerlau
Copy link

timerlau commented Feb 7, 2025

我也遇到了同样的问题

@mdddj
Copy link

mdddj commented Feb 10, 2025

同样的问题

@AsaoOoo0o0o
Copy link

AsaoOoo0o0o commented Feb 18, 2025

参考这个把项目中所有涉及到 tailwind 的内容都删干净后再pnpm umi g tailwindcss,项目可以正常运行且 tailwind 生效

@telanflow
Copy link

参考这个把项目中所有涉及到 tailwind 的内容都删干净后再pnpm umi g tailwindcss,项目可以正常运行且 tailwind 生效

这个issue是指的tailwindcss v4版本有问题

@mdddj
Copy link

mdddj commented Mar 7, 2025

已经升完了,按照官方教程来升级就行,要加一个配置
.umirc.ts

  extraPostCSSPlugins: [
    require("@tailwindcss/postcss")
  ],

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

No branches or pull requests

5 participants