kiritokatklian / nova-permission

A Laravel Nova tool for Spatie's laravel-permission library
https://novapackages.com/packages/vyuldashev/nova-permission
MIT License
68 stars 15 forks source link

Menu issue after installing this package #18

Closed ObaydaAlesawi closed 3 months ago

ObaydaAlesawi commented 2 years ago

After installing this package, all menus can't be clicked and this error occurred (in promise) TypeError: Cannot read properties of undefined (reading 'toString') image

kiritokatklian commented 2 years ago

@Algeneralo My guess is it's either caused by a conflict with another package or because of a recent Nova update. Can you please try disabling other packages and let me know which one is causing the conflict, if any?

Also what Nova version are you using?

felly commented 2 years ago

I don't know why this error occurs, but at least for me it works again after removing the translation in the group function:

public static function group()
{
    // return __('nova-permission-tool::navigation.sidebar-label');
    return 'Roles & Permissions';
}

* edit: It worked before, but somehow it stopped working (using Nova v4.8.1).

ahmedmaazin commented 2 years ago

Laravel Framework: 9.17.0 Laravel Nova: 4.8.1

I've started testing this package and can confirm this issue does not happen to me. Maybe I'm missing the issue defined here or it's no longer an issue? 😄

btw: @kiritokatklian thanks a lot for this fork.