Open izolotarev opened 1 year ago
In documentation it says
"Import your .svg file inside a React component:
import Logo from "./logo.svg";"
But in my case it only works without extension like this:
import Logo from "./logo"
Importing with extension gives the error:
Invariant Violation: View config getter callback for component <svg> </svg> must be a function (received undefined).
<svg> </svg>
undefined
In documentation it says
"Import your .svg file inside a React component:
import Logo from "./logo.svg";"
But in my case it only works without extension like this:
import Logo from "./logo"
Importing with extension gives the error:
Invariant Violation: View config getter callback for component
<svg> </svg>
must be a function (receivedundefined
).