Skip to content

error TypeError: Cannot read property '_id' of undefined #6640

@PhantomxJoker

Description

@PhantomxJoker

When I migrate from alpha to v3.0.0, had an error about user-permissions plugin:
error Bootstrap function in plugin "users-permissions" failed [2020-06-12T01:15:06.300Z] error TypeError: Cannot read property '_id' of undefined at dbPermissions.map.p (/usr/src/app/node_modules/strapi-plugin-users-permissions/services/UsersPermissions.js:267:59) at Array.map (<anonymous>) at Object.updatePermissions (/usr/src/app/node_modules/strapi-plugin-users-permissions/services/UsersPermissions.js:266:46) at processTicksAndRejections (internal/process/task_queues.js:86:5)

For reproduce the error, do the next:

  1. Migrate from alpha to RC3 using MongoDB
  2. Set port to 3000 and run serve

I guess that is something related to some DB collection but I'm no really sure

  • Node.js version: 12.16.1
  • NPM version: 6.13.4
  • Strapi version: v3.0.0
  • Database: MongoDB
  • Operating system: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions