mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #1092] Problems when using this package #514
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#514
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 @flazouh on GitHub (Mar 20, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1092
I'm using webpack and a react project, i'm importing the css like this in my component:
import "node_modules/flag-icons/css/flag-icons.min.css";I had to make the following modification in my webpack.config.js so that the css is loaded


and using a
<span className="fi fi-gr"></span>First of all this happens in my project root folder, all the svgs are "created with weird ids"

And secondly, when opening the html page, the flags are not loaded:

Any help would be greatly appreciated! Thanks in advance :)
@lrljoe commented on GitHub (Mar 24, 2023):
Can you post the rest of your webpack and any included files/configs please
The problem is likely with the output section