This is a companion discussion topic for the original entry at

Hello Yves,

Can you help me maybe what is the problem?
I try to add content-type with “strapi generate” but I didn’t saw in admin.
Installed strapi with ts and version is 4.3.2.

According to practical test and fresh experience, maybe you didn’t rebuild the project before loading. Every time installing a plugin, adding content-type, need to rebuild and restart the development.

I met an issue following the router config with the error below:

TypeError: Cannot create property 'type' on string 'content-api'
    at /Users/test/Documents/strapiDemo/node_modules/@strapi/strapi/lib/services/server/register-routes.js:71:21
    at /Users/test/Documents/strapiDemo/node_modules/lodash/lodash.js:4967:15


and change to the below format that will be ok,

module.exports = {
  'content-api': {
     type: 'content-api',
    routes: [],
1 Like