williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://williamcruzme.github.io/vue-gates/
MIT License
263 stars 31 forks source link

TypeError: Cannot read properties of null (reading 'includes') #53

Open Dennise89 opened 2 years ago

Dennise89 commented 2 years ago

So I am using this package (Vue.js app), but I get the following error:

TypeError: Cannot read properties of null (reading 'includes') It seems that the roles property is null, but it should be an empy array.

Schermafbeelding 2022-03-08 om 10 05 16 Schermafbeelding 2022-03-08 om 10 05 31
sagarhumagain commented 2 years ago

i'm aslo getting the same error