Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

University of Code

5.3k members • Free

36 contributions to University of Code
LMS Platform Hydration error
Hey everyone, can I please get some help with a hydration error in my Next.js + Sanity project? I’ve been following Sonny Sangha’s tutorial and everything was going well until I reached the Sanity Studio section. I’ve been stuck on this the whole night 😅 and I’m not sure if I made a mistake in my setup or if it’s something coming from Sanity’s PortableText renderer. These are the errors I’m getting: Error 1: In HTML, <div> cannot be a descendant of <p>. This will cause a hydration error. See more info here: https://nextjs.org/docs/messages/react-hydration-error Error 2: <p> cannot contain a nested <div>. See this log for the ancestor stack trace. The error points to my app/studio/[[...tool]]/page.tsx file, but my file is literally just: import { NextStudio } from "next-sanity/studio"; import config from "../../../sanity.config"; export const dynamic = "force-static"; export { metadata, viewport } from "next-sanity/studio"; export default function StudioPage() { return <NextStudio config={config} />; } I also tried searching for solutions, and some AIs say the issue might be coming from Sanity’s PortableText blockquote renderer, which auto-generates HTML that causes <p> tags to wrap <div>s. I’m not sure whether I installed something wrong, misconfigured Sanity, or if this is a known issue. If anyone has seen this before or knows how to fix it, I’d really appreciate the help 🙏
0 likes • 18h
@Mark Sikaundi No I haven't tried sanity github just yet I decided to continue with the code and come back to the error when I have more free time
0 likes • 18h
@Mark Sikaundi here you go : https://github.com/MaisonChetty/lms-ai-saas
🇿🇦 Anyone from South Africa?
Hey everyone! 👋 I'm based in Bryanston, South Africa, and excited to be part of this community! 🚀 Are there any fellow devs from South Africa here? Maybe even around Bryanston or Joburg? Let’s connect! 🤝🔥
0 likes • Apr 2
Hi I am based Johannesburg nice to meet you
Guys I need help
In "manage plan" when i try to "change my plan" this error appears (red letters in the image). Can anybody help me please?
Guys I need help
3 likes • Mar 3
I think that might be an issue with schematic will you be able to show me you schematic code and maybe i can try help you with it
0 likes • Mar 6
@Gabriela Alvarado What you could do is try to reconnect your schematic and put it on the test mode if you have tried that then try to create a new schematic project and try to connect your stripe to that one and just make sure all your features and flags are the same as the old one
Feedback
Pls tell me how's my final app? https://arhans-clipgen-ai.vercel.app/
0 likes • Mar 4
Dark an light mode doesn't work i like the feel of it other than that
Lets Add Gemini a Live Thread
https://sdk.vercel.ai/providers/ai-sdk-providers/google-generative-ai Lets do this together
0 likes • Mar 1
@Digitl-Alchemyst Steven-Watkins how were you able to display the projects the user has done in the side bar
1-10 of 36
Maison Chetty
4
89points to level up
@maison-chetty-4043
I am currently studying Information Technology and just looking to gain experience while meeting new people

Active 12h ago
Joined Jul 24, 2024
Powered by