mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 17:35:54 +03:00
[GH-ISSUE #431] Failing build some country icons because of unresolved '%23b' #263
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#263
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 @aligit on GitHub (Feb 21, 2018).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/431
Despite successfull npm install, some countries such as nu.svg, nz.svg, np.svg are causing npm start failure.
Here is the error I'm getting:
If I comment these flags in node_modules, the server successfully starts.
Environment:
Windows 10
npm --version 5.6.0
Below is the package.json:
@griffiti commented on GitHub (Feb 21, 2018):
I'm getting the same error.
Environment:
Windows 10
Node 9.5.0
Error:
ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/flag-icon-css/css/flag-icon.css
(Emitted value instead of an instance of Error) CssSyntaxError: C:\dev\projects\simpliq-full\node_modules\flag-icon-css\css\flag-icon.css:166:399: Can't resolve '%23a' in 'C:\dev\projects\simpliq-full\node_modules\flag-icon-css\css'
Occurring for the following countries:
np
nu
nz
sl
za
bj
@aldenteTarnow commented on GitHub (Feb 21, 2018):
Despite the error. How do you include and use flags with angular?? Are you guys using angular 5? Can someone guide me how to???
@griffiti commented on GitHub (Feb 21, 2018):
I'm using Angular 5.2.5. Here's how the flags are being used:
<i class="flag-icon flag-icon-ad h1" title="ad" id="ad"></i>@lipis commented on GitHub (Feb 22, 2018):
Can you have the minimum number of dependencies that are causing this error?
@kloasn commented on GitHub (Feb 22, 2018):
Updating to the latest version of angular/cli (1.7.1) resolves the issue.
@aligit commented on GitHub (Feb 22, 2018):
I manage to fix it by restoring package-lock.json. I've also upgraded my @angular/cli from 1.4.2 to 1.6.0
@lipis commented on GitHub (Feb 22, 2018):
so I guess we can close this issue?
@aligit commented on GitHub (Feb 22, 2018):
For me that's fine. @griffiti did you manage to fix it by upgrading your angular.
@stychu commented on GitHub (Feb 23, 2018):
@griffiti
And how to include the library to be able to use the css?
@kaleidocore commented on GitHub (Mar 24, 2018):
I too can confirm that updating to angular/cli 1.7.3 resolved the issue. In fact, I just ran
npm updatein my angular project folder, and bunch of stuff got upgraded and the compile errors disappeared.
@stychu
I'm using the latest Angular 5 SPA template.
npm install flag-icon-css@import "~flag-icon-css/css/flag-icon.css";<span class="flag-icon flag-icon-se flag-icon-squared"></span>@sushil302 commented on GitHub (Jun 28, 2018):
@lipis @kaleidocore Hi i am using Angularjs 1.3.13 and using flag-icon-css i am only able to display us and gb flag and not able to display any other flags. i tried doing npm update but didnt work for me.
Anyone know solution on it?
@lipis commented on GitHub (Sep 26, 2018):
Not sure what we can do here.. seems fine from my end :)