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 Report]: 动态导入css文件控制台报错 #1551

Closed
289420843 opened this issue Jul 8, 2024 · 1 comment · Fixed by #1821
Closed

[Bug Report]: 动态导入css文件控制台报错 #1551

289420843 opened this issue Jul 8, 2024 · 1 comment · Fixed by #1821
Labels
bug Something isn't working
Milestone

Comments

@289420843
Copy link

Steps to reproduce

import("./test.css");
存在动态导入css的代码运行时报错:Dynamic imported module "xxxxx" is not registered.
但实际在运行时可以正确的加载样式文件并让样式生效,所以我认为不应该出现这个错误信息。

Reproduce link

No response

What is actually happening?

.

System Info

.
@wre232114
Copy link
Member

我们看看,应该是生产构建这个 动态css导入语句没有被移除

@wre232114 wre232114 added this to the Planned milestone Jul 8, 2024
@wre232114 wre232114 added the bug Something isn't working label Jul 11, 2024
@wre232114 wre232114 mentioned this issue Oct 12, 2024
This was referenced Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants