Reputation: 1
I am working on my project, and the frontend is built on React.
The issue that I am facing is with a specific page (component). While I open the project in dev env via VScode the page works as expected (rendering post of the user/user profile image), however if I deploy the page, it will not return the post at all, only a broken profile image. Console log shows the post data as undefined. It happens only on the deployed version. Issue cannot be run build because I have added other components to app after the Post, and those are working as well.
Add console logs and the object will not return the data like post.id, post_image etc. It works fine on localhost so I was thinking if it might be some issue with how Heroku deploys the page. The react dev tool show the affected component as anonymous.
Upvotes: -4
Views: 38