-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
SVGs are not rendering on lates vite 6 #401
Comments
Hello @Prathap-Thunga. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
How are rendering this SVG? They are multiple ways to do so, it would be simpler for us to fix the issue if you can reproduce it on stackblitz. The default template in the comment above does render two svg correctly (one from public, one relative import) |
Hello @ArnaudBarre , Here is the link where you can reproduce. If you hover on the text React Icon its is displaying react icon as a cursor but if we hover on the custom text its not displaying the custom icon and both the SVGs are rendering normally but if we render them as a cursor icon react icon is working but my custom icon is not working. Use the below link to reproduce the issue. link - https://stackblitz.com/edit/vitejs-vite-afda43gn?file=src%2FApp.jsx |
Inline svg seems broken for inline style https://stackblitz.com/edit/vitejs-vite-afda43gn?file=src%2FApp.jsx import icon from './assets/icon.svg?no-inline'; |
I tried using |
Describe the bug
I am trying render an SVG in Vite + React application. There is only probelm with one SVG that in vite 6. In vite 5 same svg is working did anyone faced this issue ?? Help would be appreciated.
Reproduction
NA
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: