-
Notifications
You must be signed in to change notification settings - Fork 10
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
No matching export in in svg file. #8
Comments
Hi, could you provide a code reference I could take a look at? |
@kazijawad i am trying to use it like its implemented in create react app . its mentioned here in their docs import { ReactComponent as Logo } from './logo.svg';
function App() {
return (
<div>
{/* Logo is an actual React component */}
<Logo />
</div>
);
} |
Have you tried |
Closing this issue because of inactivity. |
@kazijawad default export works indeed. But most of the SVGR exports I saw generated by Webpack integration and Rollup integration generates a named export of |
@RIP21 Ah I see — yes this is currently possible with the SVGR API. It can be passed into the plugin options like this:
It looks like the hosted SVGR documentation doesn't include all the possible options 😕 |
i am trying to import svg file like this
and it gives following error
The text was updated successfully, but these errors were encountered: