adrianhajdin / aora

Build your first mobile application
https://jsmastery.pro
1.41k stars 259 forks source link

Error while developing the VideoCard.jsx Component #9

Open Madhannmady07 opened 4 months ago

Madhannmady07 commented 4 months ago

Everything going pretty good with this application, But at the time stamp of 2:40:36 , When i gave the same code as same him , at while supplying the video as parameter to the component , mainly while at the creator: {username, avatar} I was getting this below mentioned error . . . .

When I remove that particular part , ie thaat creator code part , the code works pretty fine . . . img

can some one give me the reason , for what causes this error ? and help me to solve this error ?

HerbertNtim commented 4 months ago

maybe it is a typo error

Let us see your code

giannis198 commented 4 months ago

The "(creator: {username, avatar})" is not needed continue the code without it. This works fine const VideoCard = ({ title, creator, avatar, thumbnail, video })

madhannmady commented 4 months ago

maybe it is a typo error

Let us see your code

Screenshot 2024-04-21 190454

This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . .

Should I continue to code ? excluding that particular line ? need ur suggestion brothers

EvansRobbie commented 4 months ago

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

madhannmady commented 4 months ago

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

HerbertNtim commented 4 months ago

maybe it is a typo error Let us see your code

Screenshot 2024-04-21 190454

This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . .

Should I continue to code ? excluding that particular line ? need ur suggestion brothers

This what i did const VideoCard = ({ title, creator, avatar, thumbnail, video }) check it and do it accordingly

HerbertNtim commented 4 months ago

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Make sure the relationship between the video and the user is made well

EvansRobbie commented 4 months ago

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Have you confirmed if you have set it many-to-one or one-to-many..it should be many-to-one..

AnjanaDhakal commented 4 months ago

Are any of you using Android, as I'm experiencing a problem when I click on the search field. The buttomtab push up by the keyboard.I tried using keyboardavoiding view, but it still didn't work. Thank You in advance!

madhannmady commented 4 months ago

maybe it is a typo error Let us see your code

Screenshot 2024-04-21 190454 This is my code brothers . . . and @giannis198 , yeah even checked the final code which he had deployed . . in which these code doesnt took place..but while at this phase he is using it currently . . so im little bit confused to move forward . . . Should I continue to code ? excluding that particular line ? need ur suggestion brothers

This what i did const VideoCard = ({ title, creator, avatar, thumbnail, video }) check it and do it accordingly

Ok let me try this for now and continue this, btw thank u for everyone , who had helped me throughout this process.

madhannmady commented 4 months ago

Go to appwrite check if you have set the relationship correctly on the videos attributes i.e. many-to-one. As the error suggest's username is 'undefined' so probably the issue is how you have set the attributes..

I checked that part too , everything was crct my frnd , I dont what to do now . .. .

Have you confirmed if you have set it many-to-one or one-to-many..it should be many-to-one..

Yeah I have made sure that it is "Many-to-one" , but still the error pops up,

TajwarSaiyeed commented 2 months ago

ERROR

Video playback error: db.w0: None of the available extractors (c, d, b, g, k, b, a0, d, h0, e, h, b, e, f, b, a) could read the stream.

Error on horizontal video playing

did anyone face the problem before?

ImRkofficial commented 1 week ago

Everything going pretty good with this application, But at the time stamp of 2:40:36 , When i gave the same code as same him , at while supplying the video as parameter to the component , mainly while at the creator: {username, avatar} I was getting this below mentioned error . . . .

When I remove that particular part , ie thaat creator code part , the code works pretty fine . . . img

can some one give me the reason , for what causes this error ? and help me to solve this error ?

Screenshot 2024-08-17 173535 am also facing this issue but like this it works for me to send props like this and add a optional chaining

sam-arth07 commented 1 week ago

Actually you need to replace creator with users as the item object contains users not creators. This worked for me: image