How do I Fix the Error on Strapi that Says Cannot Read Property Component of Null?

I am trying to create a new entry on Strapi Admin for one of my collections and all I get is an error that says cannot read property component of null. Please how do I fix this error?


I ran into this after updating Strapi to the latest version (3.3.4). The “id” field is removed (at least in my case) from the data object in the lifecycles which resulted in the mentioned error.

Have you modified default code somehow? Lifecycle manipulations?