Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Campground show page is not working. #9

Open
dezfuture opened this issue May 1, 2021 · 3 comments
Open

The Campground show page is not working. #9

dezfuture opened this issue May 1, 2021 · 3 comments

Comments

@dezfuture
Copy link

the page is showing an error and stating -> Cannot read property 'username' of null at eval .
Can someone help me in solving this issue

@dezfuture
Copy link
Author

The main problem after completing the image upload section is that the campgrounds which were provided by colt when trying to view then, the show page is showing a Type Error.

From what I figured out it is showing such because the given campgrounds do not have the creator name and the error is showing the same that 'The username cannot be null'.

@dezfuture
Copy link
Author

Can anybody help in clearing this out?

@abhi784pat
Copy link

because if u remembered that video there colt uses his user id to seed the data in seeds/index.js so what u should do is go and first take one users id from your database then paste in seed/index.js file then seed the data again
i am pasting a link for your help:- https://www.youtube.com/watch?v=JivI-zeaW9o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants