When I click My Article button from the homepage I get the following error :
CastError: Cast to ObjectId failed for value “{ articleId: 5f4ebe073c6a0d23745063d0 }” at path “_id” for mode
l “Article”
So how did you solve this? i am having the exact same issue. it has something to do with FindById
Edit: So apparently there was a problem i overlooked ( I bet many will run into this problem)
Make sure to do something.findById(userId) instead of something.findById({userId}) do not pass the expected id inside of the brackets or this error will be thrown.