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
Encounter error: node_modules/flag-icon-css/css/flag-icon.css does not provide an export named 'default' when using Vite 5 because of incompatible CSS module usage.
Basic information:
react-flag-icon-css version: 1.0.25
Module bundler: Vite (rollup) version: 5.0.12
The output of node -v: 18.17.0
I am using standard Css.
Description
I'm using Vite that supports CSS Modules. However Vite deprecated the CSS default export (ref) in the version 5. So I encountered the issue when using our library because Vite does NOT exporting named default if we are missing ?inline query
Release 1 version with the correct approach when using Vite
importstylesFlagIconfrom'flag-icon-css/css/flag-icon.css?inline'importstylesMainfrom'./styles/main.css?inline'// Inject CSS if neededimport'flag-icon-css/css/flag-icon.css';import'./styles/main.css';
The text was updated successfully, but these errors were encountered:
Report a bug:
node_modules/flag-icon-css/css/flag-icon.css does not provide an export named 'default'
when using Vite 5 because of incompatible CSS module usage.Basic information:
react-flag-icon-css
version: 1.0.25Module bundler: Vite (rollup) version: 5.0.12
The output of
node -v
: 18.17.0I am using standard Css.
Description
?inline
queryRef: https://vitejs.dev/guide/features.html#disabling-css-injection-into-the-page
How I am creating
FlagIcon
Expected behavior or result
Actual behavior or result
Propose a feature:
The text was updated successfully, but these errors were encountered: