---
title: "Comment by Đồng Đặng Minh on \"Migrating from Create React App (CRA) to Vite\" | Hashnode"
description: "Just note, vite-plugin-svgr package was release version 4, so if you install this version it won&#39;t work with syntax in this blog. You should downgrade to ve"
url: "https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd"
---

[Discussion](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a)

Comment [Migrating from Create React App (CRA) to Vite](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a)

[Đồng Đặng Minh](https://hashnode.com/@Koo199x)

[Sep 28, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd)

Just note, vite-plugin-svgr package was release version 4, so if you install this version it won't work with syntax in this blog. You should downgrade to verion 3.3.0

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

[Sep 28, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd#reply-6515424ff80d7d6478977d56)

What syntax should be used and I can update the article?

[Đồng Đặng Minh](https://hashnode.com/@Koo199x)

[Sep 29, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd#reply-6516a5d2fc6c496f09f07be2)

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha) You can refer on this site [npmjs.com/package/vite-plugin-svgr](https://www.npmjs.com/package/vite-plugin-svgr)

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

[Oct 2, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd#reply-651ae5b96b3bc781290725b4)

[Đồng Đặng Minh](https://hashnode.com/@Koo199x) I just updated it. Can you check if it looks ok?

[Đồng Đặng Minh](https://hashnode.com/@Koo199x)

[Oct 4, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd#reply-651d369fc64d5e99595a0fe4)

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha) Syntax is look good for library's version latest, but I don't think it will be used for most developer. So I suggest this section should be show the both syntaxs of version 3.x and 4.x

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

[Oct 4, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/65152aa6f80d7d64789779dd#reply-651d3deac64d5e99595a110b)

[Đồng Đặng Minh](https://hashnode.com/@Koo199x) I imagine anyone migrating from CRA to Vite will be using a fresh installation of Vite, therefore picking up the latest version of svgr.
