This question is actually almost a duplicate of my previous question (An object inside map function is not recognized), but since I encountered a similar problem, I would li