Content Type Definition is invalid

[details=“System Information”]

  • Strapi Version: 4.2.3
  • Operating System: Windows
  • Database: sqlite
  • Node Version: 16.20.2
  • NPM Version: 8.19.4
  • Yarn Version: 1.22.21

Hi,

I am using the guide here: How To Migrate From Strapi v3 to v4 Walkthrough to migrate, to migrate my v3 Strapi app to V4, but I am running into the error below:

I am at the stage of the article where I need to run the following:

When I run yarn develop I get the error and I am unsure of what to do now.

Within the folder src/api/articles/content-types/articles/, there was a file named lifecycle.js, removing this file resolved the issue.