when i deploy frontend trpc fails to compile
im trying to deploy my create-react-app with tRPC to Vercel
it works perfectly fine on localhost
it also works fine when i build the CRA on my local computer and just open the index.html

Solution:Jump to solution
ok I know the issue but i dont know the fix. its because the frontend code needs node_modules installed on the server folder
4 Replies
Solution
ok I know the issue but i dont know the fix. its because the frontend code needs node_modules installed on the server folder
kk i fixed it

let me know if there is better way to depoy monorepo with /server/ and /client/ , im deploying them seperately
why would you need the node modules in the server folder that makes no sense. Did you hard code your import statements with the server route?