DEV Community

Discussion on: Importing SVGs to Next.js

Collapse
 
emmiep profile image
Emmie Päivärinta

I didn't have any luck with the babel plugin. I would've preferred that because I don't really like having to configure webpack either, but svgr worked out of the box and I suppose once you get used to configuring webpack in next it's not that big of a deal.

It seems like this is the same issue I had with the babel plugin: github.com/airbnb/babel-plugin-inl...
Seemingly its SVG parser has issues with some SVG files.