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

Error: Error retrieving icon :al! Http failure response for http://localhost:4200/assets/svg-country-flags/svg/al.svg: 404 Not Found #135

Open
apangr opened this issue Nov 24, 2023 · 4 comments

Comments

@apangr
Copy link

apangr commented Nov 24, 2023

Describe the bug
When initializing the component the flags do not load. I followed the steps in the documentation

imports:[
...
 MatSelectCountryModule.forRoot('en'),
...
]
 ..."assets": [
              "src/favicon.ico",
              "src/assets",
              "src/manifest.webmanifest",
              {
                "glob": "**/*",
                "input": "node_modules/svg-country-flags/svg",
                "output": "src/assets/svg-country-flags/svg"
              }
            ],...

Screenshots
Screenshot from 2023-11-24 11-08-43

@jezmaghuyop
Copy link

@apangr having the same issue, I ended up manually copied the svg-country-flags/svg from node_modules to my assets folder.

@sudarshansb143
Copy link

@jezmaghuyop Thanks for the workaround it works on angular 14

@serox-rr
Copy link

serox-rr commented Apr 17, 2024

In angular 17 (maybe other versions), you just have to put ./assets/svg-country-flags/svg, instead of src/assets/svg-country-flags/svg, like this:

..."assets": [
              "src/favicon.ico",
              "src/assets",
              {
                "glob": "**/*",
                "input": "./node_modules/svg-country-flags/svg",
                "output": "./assets/svg-country-flags/svg"
              }
            ],...

Then It will work without copying the module.

@kotte94
Copy link

kotte94 commented Sep 26, 2024

same issue, installed through npm, moreover there are no flags in my local folder(assets)

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

No branches or pull requests

5 participants