Issue:
Because of issue of uploading svg images I isntalled a package “vite-plugin-svgr”.
Previouslly I was able to upload an svg and suddenly I could not and got errors (dont recall the names of errors).
After configuring the vite plugin svgr, it started to give a error in Docker container
“Failed to Load config from /app/vite.config.js”
Stack:
- React,
- Vite
- Docker
Attempts:
I tried looking online when I started to have the issue of not being able to upload a svg image.
I ended up installing the vite plugin svgr package after reading a couple of articles about it.
But unfortunatly It did not solve the issue and ended with trying to solve the issue of uploading a SVG image.
Thank you very much for reading my issue, hopefully this is a easy fix for a couple of you out there.
github project:
- project
Error shown in docker
After configuring vite.config.js
I hope to be able to upload svg images without issues
I have looked at these articles, but couldn’t get it to work for me
Articles: about svg issues
- how-to-import-svg-files-as-react-components-in-vite
- storybook/issues/24173