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

SVG file import error #42

Open
jdavid54 opened this issue Feb 25, 2023 · 0 comments
Open

SVG file import error #42

jdavid54 opened this issue Feb 25, 2023 · 0 comments

Comments

@jdavid54
Copy link

jdavid54 commented Feb 25, 2023

script.js :
import bot from './assets/bot.svg'
import user from './assets/user.svg'

  • send.svg is shown correctly but bot.svg and user.svg cannot be read !

Error report in Google Chrome inspect :

  • Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "image/svg+xml". Strict MIME type checking is enforced for module scripts per HTML spec.
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