When I try to deploy my app on Vercel, I get the following error:
src/App.tsx(5,22): error TS2307: Cannot find module './components/chat/ChatRoom' or its corresponding type declarations. Error: Command "npm run build" exited with 2
However, the import works in a local dev environment, and when I build the project locally it works as well.
The component the error is about The import the error complains about
I'm really lost as to what could be the problem. The capitalisation looks fine to me, and everything works fine apart from the building on Vercel.
I've tried to rename the component and update the imports, but that doesn't do anything. I'm lost.