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

Import local svg without extension #290

Open
izolotarev opened this issue Aug 18, 2023 · 0 comments
Open

Import local svg without extension #290

izolotarev opened this issue Aug 18, 2023 · 0 comments

Comments

@izolotarev
Copy link

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).

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