---
title: "Comment by Malin Hanák on \"Migrating from Create React App (CRA) to Vite\" | Hashnode"
description: "I don&#39;t know if it is alright to ask questions here, but I have migrated on of my CRA&#39;s fully to vite now, following this amazing guide. But I am runnin"
url: "https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/63f8957b207712e9dab0697e"
---

[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)

[Malin Hanák](https://hashnode.com/@Mallan)

[Feb 24, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/63f8957b207712e9dab0697e)

I don't know if it is alright to ask questions here, but I have migrated on of my CRA's fully to vite now, following this amazing guide. But I am running into problems when it comes to building it for productions, whenever I run it in productions it cannot find the files in assets folders, it fails with 404. I think this is because the index.html script and link tags are missing a leading . to the paths but I cannot find anywhere on how to configure vite fix this issue. Have you any ideas?

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

[Feb 24, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/63f8957b207712e9dab0697e#reply-63f89680207712e9dab069ba)

Hey Malin, I think this question would be best placed on Stack Overflow as it will be difficult to help without code examples, screenshots etc.

[Malin Hanák](https://hashnode.com/@Mallan)

[Feb 27, 2023](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/63f8957b207712e9dab0697e#reply-63fc7274a13f5e02f6799e1e)

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha) Thank you, fully understand!

[Matthew Wells](https://hashnode.com/@mwells)

[Feb 24, 2025](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/63f8957b207712e9dab0697e#reply-67bc5df4628ad12e0f8d8f4b)

[Malin Hanák](https://hashnode.com/@Mallan) Did you ever resolve this or find out what the issue was? I'm having similar issues and get strange behaviour with different scenarios - Did you create a stack overflow question and have a possible link?
