The problem is that the url says undefined, when i press get started however, all the data gets put on appwrite correctly. I also know the userID exists because i have found the userID in appwrite so i dont know why it wont work. I tried debugging in the code and i came across that the userID that i am returning from the createUser function is not actually returning anything, its returning "undefined". Also i have a lot of errrors in the console. I dont know the reason for this and i have been following the code exactly in the video. the image also does not go to the botton of the page and there is warning signs in the console letting me know that the images height and width have problems (i am using google as my browser)
#When i try to use the dynamic redirect with the userID and a lot of errors in the console.
16 messages · Page 1 of 1 (latest)
All gthe code should be in the homepage branch
i have not merged the homepage and main branch as the homepage is not functional
Heres is a neet version of all the errors that i am facing:
1 - the problems in the console as soon as i load up the code. The orange text is the problem with my image and the red text is the problem overall that i want to fix
2- The biggest problem that i am facing is the redirecting not working. When i do /${userID}/. In the url userid should appear the same way it appears on appwrite however it does not appear isntead the url says undefined. I looked and i think that the userID is not being returned when you create a user but also in existing users. therefore, i beleieve that this problems stems from createUsers function
Here is an image of the URL
with the undefined problem i was talking about in the video the person clearly had the userID which helped with the dynamic effect but i dont have that routing functioning at all
okay let me check your code
hi, i found your problem, you typo here
it should be
/patients/${user.$id}/register
not
/paitents/${user.id}/register
hello thank you so much for that, this has solved one of the problems i was facing
Can you also help me with the other ones i mentioned with the image. I think i made a mistake with the css
here is the issues im still facing
1- (Main problem) The url now works but it is still not redirecting to the correct page so i think i have a problem with the router.push
2- css imaging
3- when you run the code you just get a bunch of errors in the console
IMAGE RELATED TO PROBLEM 1:
IMAGE RELATED PROBLEM 2 (i can scroll down for some reason and image does not reach the bottom of the page):
IMAGE RELATED PROBLEM 3 (i tihnk i made an error in the code which is causing the console to give that error):
hi, you still get this error?