flag-icons
flag-icons copied to clipboard
Error with ESBuild when using flag-icons
When on upgrading from Angular v17 to v18, using flag-icons Library, We are getting the Error during the Build.
(Even when outputHasing = "all" / "media")
Having the same issue, I'll paste it to make it indexed in search engines:
Two output files share the same path but have different contents: media/xx.svg
✘ [ERROR] Two output files share the same path but have different contents: media/ad.svg
✘ [ERROR] Two output files share the same path but have different contents: media/ae.svg
A workaround by the way:
@forward "../node_modules/flag-icons/sass/variables" with (
$flag-icons-use-square: false,
);
@use "../node_modules/flag-icons/sass/flag-icons-base";
@use "../node_modules/flag-icons/sass/flag-icons-list";
@john8329 Thanks much for the Suggestion. It resolves the Build Issue.
Angular is such a pain...it's been causing issues since day 1. At some point in the near future I might make a minimal repo to link to as an example and just update it every major version