Migration from React.js vite javascript to Next.js typescript
Unanswered
Lilac posted this in #help-forum
LilacOP
Hello everyone. I have a project written on React.js with js and now I want to migrate to Next.js ts. I followed this tutorial: https://nextjs.org/docs/app/building-your-application/upgrading/from-vite
During it I also create an app folder and moved all of my react project files froms src into it, so there is also index.css etc (because of this I changed import from ../../index.css to ../index.css and ../../App to ../App). These are the only things I did not according to tutorial (it wasn't really specfied in it). I did everything other in accordance with it. Now, when I try to do npm run dev I get error " ⨯ Error: Cannot find module 'H:\Uli\React.js\ARC_math_competition_website\dist\server\middleware-manifest.json'". What is thereason of it and how do I fix that?
During it I also create an app folder and moved all of my react project files froms src into it, so there is also index.css etc (because of this I changed import from ../../index.css to ../index.css and ../../App to ../App). These are the only things I did not according to tutorial (it wasn't really specfied in it). I did everything other in accordance with it. Now, when I try to do npm run dev I get error " ⨯ Error: Cannot find module 'H:\Uli\React.js\ARC_math_competition_website\dist\server\middleware-manifest.json'". What is thereason of it and how do I fix that?
3 Replies
LilacOP
Anyone? 🥹
Hi @Lilac!
Could you send me a screenshot of your root in dm??