Next.js 14 (app router) import SVG – Unsupported Server Component type: {…}
If you encountered the error: Error: Unsupported Server Component type: {…} when attempting to add an SVG import file in your component in following way then Next.js is indicating that you’re trying to import a file (as a React component) that is not supported. To quickly resolve this error, you need to add appropriate loading…