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:
ok I know the issue but i dont know the fix. its because the frontend code needs node_modules installed on the server folder
Jump to solution
4 Replies
Solution
test_1
test_12y ago
ok I know the issue but i dont know the fix. its because the frontend code needs node_modules installed on the server folder
test_1
test_12y ago
kk i fixed it
test_1
test_12y ago
let me know if there is better way to depoy monorepo with /server/ and /client/ , im deploying them seperately
gxp91
gxp9117mo ago
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?
Want results from more Discord servers?
Add your server