Rohit Verma
Rohit Verma
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
but when i do the exact copy of create-post and created a create-video, it doesn't work for that
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
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
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
@𝚜𝚗𝚘𝚘𝚣𝚎 any suggestions please. Kind of stuck.
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
Also somewhere in console I see Warning: An error occurred during hydration. The server HTML was replaced with client content in <#document>.
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
infact it first render the desired layout and then immediately move to error page
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
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 side
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
no, i am not trying to access any env, its the default prisma client env.NODE_ENV
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
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
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
Next 14 app router
any url/reference for the same
22 replies
TtRPC
Created by 𝚜𝚗𝚘𝚘𝚣𝚎 on 6/3/2024 in #❓-help
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