Skip to content
Discussion options

You must be logged in to vote

I ended up solving this issue by making the following modifications to my next-config.js file.

  1. Added the following rules: { test: /\.svg$/, use: [ '@svgr/webpack', 'file-loader' ] }

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by steveswork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant