TypeError: Cannot read properties of undefined (reading 'kind') when trying to create a new content type from dashboard or command line. #20127
Labels
issue: bug
Issue reporting a bug
severity: medium
If it breaks the basic use of the product but can be worked around
source: core:content-type-builder
Source is core/content-type-builder package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce the behavior
Expected behavior
A new content type created with it's associated files in the api folder, entry in the database and types in the contentTypes.d.ts file.
Error shows instead:
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ TypeError: Cannot read properties of undefined (reading 'kind') │
│ at Module.isSingleType (/Users/itobuz/Development/testtrou/node_modules/@strapi/utils/dist/index.js:771:25) │
│ at Module.createRoutes (/Users/itobuz/Development/testtrou/node_modules/@strapi/strapi/dist/core-api/routes/index.js:5:32) │
│ at get routes [as routes] (/Users/itobuz/Development/testtrou/node_modules/@strapi/strapi/dist/factories.js:63:39) │
│ at /Users/itobuz/Development/testtrou/node_modules/@strapi/strapi/dist/services/server/register-routes.js:67:14 │
│ at /Users/itobuz/Development/testtrou/node_modules/lodash/lodash.js:4967:15 │
│ at baseForOwn (/Users/itobuz/Development/testtrou/node_modules/lodash/lodash.js:3032:24) │
│ at /Users/itobuz/Development/testtrou/node_modules/lodash/lodash.js:4936:18 │
│ at Function.forEach (/Users/itobuz/Development/testtrou/node_modules/lodash/lodash.js:9410:14) │
│ at registerAPIRoutes (/Users/itobuz/Development/testtrou/node_modules/@strapi/strapi/dist/services/server/register-routes.js:65:24) │
│ at registerAllRoutes (/Users/itobuz/Development/testtrou/node_modules/@strapi/strapi/dist/services/server/register-routes.js:19:3) │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
The text was updated successfully, but these errors were encountered: