Coder Social home page Coder Social logo

strapi-template-corporate's Introduction

⛔ DEPRECATED

This repository is no longer maintained and only works for Strapi v3. You can find the latest Strapi v4 version of this template on the starters-and-templates monorepo.


strapi-template-corporate

A Strapi template to create Strapi projects pre-configured for corporate apps.

Usage

npx create-strapi-app@3 my-app-name --template https://github.com/strapi/strapi-template-corporate

Starters

This template is used by the following starters:

strapi-template-corporate's People

Contributors

markkaylor avatar remidej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strapi-template-corporate's Issues

The value does not match the regex

The Next frontend server will run at http://localhost:3000 by default.

However, when editing the "Home" page content you have to change the "Slug" although Slug is not a reguired field. It throws "The value does not match the regex" as it seems you can't leave the Slug field blank. The only way to get around it as far as I know, is to add a slug (RegExp pattern: ^[a-zA-Z/-]+$), e.g "home", which will take you to http://localhost:3000/home

Is there a way get around this?

Template installation failed: Command failed

Both npx and yarn commands end up with the same issue below

Creating a new Strapi application at /Users/aj/programming/tcxc-strapi.
Creating files.
Error: ⛔️ Template installation failed: Command failed: /bin/sh -c npm view https://github.com/strapi/strapi-template-corporate name version --silent


    at createProject (/Users/aj/.config/yarn/global/node_modules/@strapi/generate-new/lib/create-project.js:82:15)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
error Command failed.
Exit code: 1
Command: /usr/local/bin/create-strapi-app
Arguments: tcxc-strapi --template https://github.com/strapi/strapi-template-corporate
Directory: /Users/aj/programming
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Strapi templates do not work with [v4]

I tried to utilize the strapi corporate template, and I was unable to see/build the component relationships in the admin interface as nesting beyond one layer is not possible, nor are components with connected components, e.g. the Section->Feature Rows Group component is unable to "see" or utilize the Elements->Feature Row component b/c that component contains the Link->Link component nested within.

Can't use the template with MongoDB

Whenever I try to start Strapi using this template with Custom Config and MongoDB, I receive an error about objectID fields.

Error: global validation failed: _id: Cast to ObjectId failed for value "1" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:185:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "1" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"1"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 1,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'global validation failed'
}
Error: global validation failed: _id: Cast to ObjectId failed for value "2" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:185:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "2" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"2"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 2,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'global validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "1" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "1" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"1"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 1,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "2" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "2" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"2"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 2,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "3" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "3" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"3"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 3,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "4" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "4" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"4"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 4,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "5" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "5" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"5"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 5,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "6" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "6" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"6"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 6,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "7" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "7" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"7"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 7,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}
Error: page validation failed: _id: Cast to ObjectId failed for value "8" at path "_id"
    at ValidationError.inspect (/home/danilo/projects/app/node_modules/mongoose/lib/error/validation.js:47:26)
    at formatValue (internal/util/inspect.js:743:19)
    at inspect (internal/util/inspect.js:317:10)
    at formatWithOptionsInternal (internal/util/inspect.js:1976:40)
    at formatWithOptions (internal/util/inspect.js:1858:10)
    at console.value (internal/console/constructor.js:323:14)
    at console.log (internal/console/constructor.js:358:61)
    at createEntry (/home/danilo/projects/app/config/functions/bootstrap.js:93:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /home/danilo/projects/app/config/functions/bootstrap.js:170:5 {
  errors: {
    _id: CastError: Cast to ObjectId failed for value "8" at path "_id"
        at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:269:11)
        at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
        at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
        at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
        at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
        at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
        at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
        at Array.forEach (<anonymous>)
        at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
        at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
        at new Promise (<anonymous>)
        at promiseOrCallback (/home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
        at Function.create (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:3022:10) {
      stringValue: '"8"',
      messageFormat: undefined,
      kind: 'ObjectId',
      value: 8,
      path: '_id',
      reason: Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
          at new ObjectID (/home/danilo/projects/app/node_modules/bson/lib/bson/objectid.js:59:11)
          at castObjectId (/home/danilo/projects/app/node_modules/mongoose/lib/cast/objectid.js:25:12)
          at ObjectId.cast (/home/danilo/projects/app/node_modules/mongoose/lib/schema/objectid.js:267:12)
          at ObjectId.SchemaType.applySetters (/home/danilo/projects/app/node_modules/mongoose/lib/schematype.js:1075:12)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1250:20)
          at model._handleIndex (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:1019:14)
          at model.$set (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:960:22)
          at model.Document (/home/danilo/projects/app/node_modules/mongoose/lib/document.js:150:12)
          at model.Model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:106:12)
          at new model (/home/danilo/projects/app/node_modules/mongoose/lib/model.js:4686:15)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3052:22
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3088:7
          at Array.forEach (<anonymous>)
          at /home/danilo/projects/app/node_modules/mongoose/lib/model.js:3087:15
          at /home/danilo/projects/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
          at new Promise (<anonymous>)
    }
  },
  _message: 'page validation failed'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.