mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #1002] Some flags are not showing #470
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#470
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @isabelpebaque on GitHub (Jun 17, 2022).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1002
Hi!
All flags are showing nicely locally but some of them are not when running in production build see img:

In my main.css I am using @import '~flag-icons/css/flag-icons.css';
and in production i get following error for the images that are not showing when using the url, locally there is no error:

using class="fi mr-1 flag-icon-rounded fi-ca"
@lipis commented on GitHub (Jun 17, 2022):
That error has nothing to do with the flags from what I guess.. but it's indeed strange that some of them are showing.. are you uploaded all the flags?
@isabelpebaque commented on GitHub (Jun 17, 2022):
Yes they are all uploaded. It looks like some of the .svg files have some extra end tags that gives this error when inspecting the file.
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-ca" viewBox="0 0 512 512"> <path fill="#fff" d="M81.3 3h362.3v512H81.3z" transform="translate(-.2 -3)"/> <path fill="#d52b1e" d="M-99.8 3H81.3v512H-99.8zm543.4 0h181.1v512H443.6zM135.5 250.4l-14 4.8 65.4 57.5c5 14.8-1.7 19.1-6 26.9l71-9-1.8 71.5 14.8-.5-3.3-70.9 71.2 8.4c-4.4-9.3-8.3-14.2-4.3-29l65.4-54.5-11.4-4.1c-9.4-7.3 4-34.8 6-52.2 0 0-38.1 13.1-40.6 6.2L338 187l-34.6 38c-3.8 1-5.4-.6-6.3-3.8l16-79.7-25.4 14.3c-2.1.9-4.2 0-5.6-2.4l-24.5-49-25.2 50.9c-1.9 1.8-3.8 2-5.4.8l-24.2-13.6 14.5 79.2c-1.1 3-3.9 4-7.1 2.3l-33.3-37.8c-4.3 7-7.3 18.4-13 21-5.7 2.3-25-4.9-37.9-7.7 4.4 15.9 18.2 42.3 9.5 51z" transform="translate(-.2 -3)"/> </svg> e(.9375)"/> </svg>@lipis commented on GitHub (Jun 20, 2022):
I don't see the double end tags in our codebase.. so it's something that's happening afterwards.. sorry