Skip to content

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

Open
@Astarosa

Description

@Astarosa

Bug report

Required System information

  • Node.js version: 20.18.0
  • NPM version: 10.8.2
  • Strapi version: 5.4.1
  • Database: Postgresql
  • Operating system: Windows WSL2
  • Is your project Javascript or Typescript: Typescript

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

  • I checked the folder named for-bug for my example but i didn't noticed anything wrong about generation like bad naming and i checked the database.
  • I compared with other ressources to see if there is differences
  • Nothing "fancy" has been done in the code, i rely on the legacy strapi factory and knex

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: typescriptSource is related to TypeScript (typings, tooling, ...)status: pending reproductionWaiting for free time to reproduce the issue, or more informationversion: 5

    Type

    No type

    Projects

    Status

    To be reviewed (Open)

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions