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

Default and names CSS imports are deprecated #224

Open
b1ek opened this issue May 12, 2023 · 0 comments
Open

Default and names CSS imports are deprecated #224

b1ek opened this issue May 12, 2023 · 0 comments

Comments

@b1ek
Copy link

b1ek commented May 12, 2023

Vite now says its deprecated:

1:22:26 PM [vite] warning: 
node_modules/react-awesome-slider/src/styles.js
1  |  import styles from './core/styles.scss';
   |                      ^
2  |  
3  |  export default styles;
Default and named imports from CSS files are deprecated. Use the ?inline query instead. For example: import styles from './core/styles.scss?inline'
  Plugin: vite:import-analysis
  File: node_modules/react-awesome-slider/src/styles.js?inline

Perhaps it would make sense to change it?

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

1 participant