strapi / strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.
https://strapi.io
Other
64.06k stars 8.16k forks source link

Typescript error causing server crash during content type builder generation with both single and collection content type (SEO plugin related) #22236

Open Astarosa opened 1 week ago

Astarosa commented 1 week ago

Bug report

Required System information

Describe the bug

I started a brand new project and have already some collectionType and singleType but suddently, when i was adding some content, the content type builder was not able to generate a new one without the Typescript error explained bellow.

Steps to reproduce the behavior

  1. Go to content type builder in the admin panel
  2. Generate a new collection or single type
  3. In your IDE chek the new folder generated in /api and compare if there is differences with others valid ressources
  4. controller, route and service return the same error from factories (see screenshot)

Screenshots

image image

Additional context

Astarosa commented 1 week ago

After some test and research the bug is caused by the SEO plugin like here https://github.com/strapi/strapi/issues/22051 But for some reasons it happened for me when i create a new content type without it but not when i'm adding it to an existing content type... First i tried to regenerate types and from there i was able to understand the cause image

So i deleted all SEO references and removed the package.

I will wait for a patch for this key value error with og:description og:image and so on.