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

Icon không hoạt động ảnh hưởng đến các component khác #9010

Open
bachsmile opened this issue Feb 18, 2025 · 5 comments
Open

Comments

@bachsmile
Copy link

bachsmile commented Feb 18, 2025

Reproduction link

https://codesandbox.io/p/sandbox/ng-zorro-antd-ivy-mp18k?file=%2Fsrc%2Fapp%2Fapp.component.ts%3A5%2C58

Steps to reproduce

hiện tại tất cả các component có chứa icon nzicon trong lõi đều lỗi gây hiện tượng call network lỗi, danh sách icon chỉ hiển thị cho một vài icon hoạt động

What is expected?

sửa lỗi tính năng icon không hoạt động

What is actually happening?

Tôi dùng component upload nhưng khi upload fille lên thì lại xuất hiện một request icon lỗi http://localhost:4200/assets/twotone/picture.svg báo lỗi icon

Environment Info
ng-zorro-antd 19.0.2
Browser chorme

icon không hoạt động sẽ bị ảnh hưởng đến rẩ nhiều component lấy ví dụ không hoạt động ảnh hưởng đến component upload do nó có dùng icon này trong component gốc

Image

@Laffery
Copy link
Collaborator

Laffery commented Feb 20, 2025

hi @bachsmile Could you please describe the problem in english and provide a valid reproduction link?

@bachsmile
Copy link
Author

The icon does not work to serve the icons for example Home

@Laffery
Copy link
Collaborator

Laffery commented Feb 24, 2025

It seems the svg not found, so what method do you use to load icons in your project? and would you like to provide a minimum reproduction for us to locate the reason?
Or maybe you should read the usage doc carefully first.

@Laffery
Copy link
Collaborator

Laffery commented Mar 6, 2025

@bachsmile Have you already registered the picture.svg with NzIconService? It would be greate if you'd like to provide a minium reproduction project.

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

No branches or pull requests

3 participants