Rohit Verma
Next 14 app router
@𝚜𝚗𝚘𝚘𝚣𝚎 the culrpit is not at all the create-post, even with the, just by commenting https://github.com/rverma-dev/t3-app-bug/blob/d08f1ca79e3dcbba6033b477308a14b7ee530536/src/app/page.tsx#L89, the entire create-post works perfectly fine.
22 replies
Next 14 app router
this is the default generated code https://github.com/rverma-dev/t3-app-bug/commit/cfdfd6d1009372793144e37a62c61e633776a33c
22 replies
Next 14 app router
@𝚜𝚗𝚘𝚘𝚣𝚎 https://github.com/rverma-dev/t3-app-bug/commit/d08f1ca79e3dcbba6033b477308a14b7ee530536. Thanks a lot for your time
22 replies
Next 14 app router
infact when i removed the env variables the error changed to
Error: You're trying to use @trpc/server in a non-server environment. This is not supported by default.
For some reason the create-post setup is working on the server but the create-video is trying to run on the client side22 replies
Next 14 app router
@𝚜𝚗𝚘𝚘𝚣𝚎 thanks for sharing, i tried that but kind of stuck for quiet sometime. I had copied the provided create-post component and created a duplicate create-video component, exact same just different db table.
https://github.com/rverma-dev/t3-app-bug/commit/d08f1ca79e3dcbba6033b477308a14b7ee530536. However the page gets rendered and immediately it error out Error: ❌ Attempted to access a server-side environment variable on the client.
Kind of looking at it for last 4-5 hours but no luck at all. The code is exact same as of create-post but don't work.
22 replies
Next 14 app router
hey @𝚜𝚗𝚘𝚘𝚣𝚎 can you please share references. Even I started with https://discord.com/channels/867764511159091230/1247202570632560640/1247894624459161660 but the docs seems not having any references of these
22 replies