I npm install flag-icons
library within Angular 17 ssr project and get a list of error by serving the app:
…
✘ [ERROR] Two output files share the same path but have different
contents: media/sh-ta.svg✘ [ERROR] Two output files share the same path but have different
contents: media/un.svg✘ [ERROR] Two output files share the same path but have different
contents: media/xk.svg
The library comes with two sets of flags in different folders: node_modules/flag-icons/flags/1x1
, and node_modules/flag-icons/flags/4x3
. The filenames are the same in both directories. It seems they were “cached” into same directory (media/xx.svg) during serve process.
How to make there path unique or resolve the issue without modifying the flag-icon library?