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] 开启mako和unocss的情况下,启动失败 #12777

Closed
AdoKevin opened this issue Nov 13, 2024 · 2 comments
Closed

[Bug] 开启mako和unocss的情况下,启动失败 #12777

AdoKevin opened this issue Nov 13, 2024 · 2 comments

Comments

@AdoKevin
Copy link
Contributor

What happens?

在启用mako和unocsss后,npm run dev 启动时,提示 .umi/uno.css 文件找不到, 但实际上这个文件是存在的。

image

这个问题之前我看别人在 #12686 也反馈过 ,但是issue 关闭了。

Mini Showcase Repository(REQUIRED)

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

https://github.com/AdoKevin/umi/tree/bug_report_unocss_with_mako

其实也只是基于with_unocss 添加了mako: {}

image

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version: 4.3.30
  • Node Version: v20.18.0
  • Platform: linux X64
@stormslowly
Copy link
Member

盲猜下 是不是 unocss 还没有编译好 mako 就去 require 了, 你看看能不能先单独跑下 unocss 把 css 文件先生成了。

@AdoKevin
Copy link
Contributor Author

AdoKevin commented Nov 13, 2024

盲猜下 是不是 unocss 还没有编译好 mako 就去 require 了, 你看看能不能先单独跑下 unocss 把 css 文件先生成了。

看了一下,确实是uno.css文件还没有生成出来。提了个PR #12778 解决了这个问题。

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

2 participants