---
title: "Discussion on \"\"ReactComponent is not exported\" after upgrading vite-plugin-svgr? Here's the fix\" | Hashnode"
description: "Discussion on \"\"ReactComponent is not exported\" after upgrading vite-plugin-svgr? Here's the fix\". Why the old Create React App style import breaks in v4+, and the one-line change that fixes it"
url: "https://hashnode.com/posts/reactcomponent-is-not-exported-after-upgrading-vite-plugin-svgr-here-s-the-fix/6b03c5c255dca96ae52d34d4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# ["ReactComponent is not exported" after upgrading vite-plugin-svgr? Here's the fix](https://svgtoreact.hashnode.dev/reactcomponent-is-not-exported-after-upgrading-vite-plugin-svgr-here-s-the-fix?utm_source=hashnode&utm_medium=feed)

Why the old Create React App style import breaks in v4+, and the one-line change that fixes it

5h ago · 3 min read · svgtoreact.hashnode.dev  
Read the article

-   [#svg](https://hashnode.com/tag/svg)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#vite](https://hashnode.com/tag/vite)

## Written by

[SVG to React](https://hashnode.com/@svgtoreact)

@svgtoreact

  
[View profile](https://hashnode.com/@svgtoreact)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
