ERROR: Cannot read properties of undefined (reading 'allPermissions')

I have an error when I try to access roles and user permissions I get a white screen I updated it to version 2.0 of strapi v4, what can I do I already tried removing the node_modules and the yarn.lock, I already installed the ndoe moduels and the yarn but It keeps giving me this error, what can I do?

I had faced similar error related to permission when I was migrating from V3 to V4. I would suggest you to check the strapi admin and permission tables. For me, the migration was not correct for permission table and I needed to delete the data.

1 Like

SOLVED: problem solved it was a folder that gave me the error and it was from BUILD, since I had installed esbuild-loader, but it was not packaged correctly and that folder was detected by default, I had already deleted everything related to esbuild-loader , I deleted it and it’s working correctly again my strapi greetings

1 Like