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] SSR 和 Tailwindcss 无法同时使用 #12984

Open
daizeyao opened this issue Apr 5, 2025 · 0 comments
Open

[Bug] SSR 和 Tailwindcss 无法同时使用 #12984

daizeyao opened this issue Apr 5, 2025 · 0 comments

Comments

@daizeyao
Copy link

daizeyao commented Apr 5, 2025

What happens?

我新建了一个项目,并且并且添加插件tailwindcss,然后开启SSR,那么项目就无法启动了

How To Reproduce

1、npx create-umi@latest新建项目

2、npx umi g tailwindcss安装插件

3、在.umirc中添加ssr: {}

4、运行npm run dev(npm run build),报错

Image

关闭ssr: {}恢复正常

Context

  • Umi Version: 4.4.6
  • Node Version:20.14.0
  • Platform:ubuntu
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

1 participant