BioDrop icon indicating copy to clipboard operation
BioDrop copied to clipboard

nextjs: Eddie's profile doesn't load due to a missing property

Open thamerla opened this issue 3 years ago • 4 comments

Description

Steps taken:

  • Cloned the full repo
  • Switched to nextjs branch
  • Followed the quickstart of the branch
  • Went to Eddie's profile at localhost:3000/eddiejaoude

Screenshots

image_bug

Additional information

No response

thamerla avatar Aug 14 '22 15:08 thamerla

It's great having you contribute to this project

Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

github-actions[bot] avatar Aug 14 '22 15:08 github-actions[bot]

Thanks for raising.

Q. Did you start a mongo DB? Q. Did you copy the .env.example file to .env and add the mongo url

I did have a bug, that I fixed recently, try pulling the latest changes in nextjs branch

eddiejaoude avatar Aug 14 '22 18:08 eddiejaoude

Thanks for the reply Q. Did you start a mongo DB? -> Yes Q. Did you copy the .env.example file to .env and add the mongo url -> Yes

I already had the newest changes. It turned out that the variable MONGODB_URI wasn't parsed correctly. After adjusting it worked.

How about providing a sample value in .env.example so that the format of the mongodb variable is clear to the developer - i.e. MONGODB_URI=mongodb://127.0.0.1:27017 ?

thamerla avatar Aug 15 '22 14:08 thamerla

Oh, sorry the .env.example is empty 🤦‍♂️ let me put something in there.

Btw I have this in mine...

MONGODB_URI="mongodb://localhost:27017/linkfree"

eddiejaoude avatar Aug 15 '22 14:08 eddiejaoude

The new version of the LinkFree project is out now using NextJS and TailWind

I will close this issue, but please feel free to create a new issue if still needed

eddiejaoude avatar Nov 06 '22 09:11 eddiejaoude