You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing the 'node_modules/flag-icons/sass/flag-icons.scss' in an scss file isn't working in newer angular applications with the esbuild bundler (which is now default).
I get an error that the flag files can't be resolved:
✘ [ERROR] Could not resolve "../flags/4x3/de.svg" [plugin angular-css-resource]
apps/............/src/styles.scss:1463:20:
1463 │ background-image: url(../flags/4x3/hu.svg);
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
Its possible to fix this by adding $flag-icons-path: 'node_modules/flag-icons/flags'; before the @import, but that wasn't needed in older webpack angular applications.
just to clarify, importing it in the config with styles: ["node_modules/flag-icons/sass/flag-icons.scss"] is working, but then its not possible to specify $flag-icons-included-countries.
The text was updated successfully, but these errors were encountered:
Importing the 'node_modules/flag-icons/sass/flag-icons.scss' in an scss file isn't working in newer angular applications with the esbuild bundler (which is now default).
When I do this in my
styles.scss
:I get an error that the flag files can't be resolved:
Its possible to fix this by adding
$flag-icons-path: 'node_modules/flag-icons/flags';
before the@import
, but that wasn't needed in older webpack angular applications.just to clarify, importing it in the config with
styles: ["node_modules/flag-icons/sass/flag-icons.scss"]
is working, but then its not possible to specify$flag-icons-included-countries
.The text was updated successfully, but these errors were encountered: