Cannot get ReactComponent property of the svg import in [email protected] #13033
-
I cannot get the ReactComponent property when I do a regular svg import. For example: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I ended up solving this issue by making the following modifications to my
|
Beta Was this translation helpful? Give feedback.
I ended up solving this issue by making the following modifications to my
next-config.js
file.Added the following rules:
{ test: /\.svg$/, use: [ '@svgr/webpack', 'file-loader' ] }
Removed:
next-image
loader plugin. It converted my svg default imports to base64 data urls. If and when the need for other image types arises in this project, I will then create pertinent loaders for those.