moroneyio / novaspatiepermissions

31 stars 28 forks source link

Missing tool.css and Tool.js #1

Closed DevPlus31 closed 2 years ago

DevPlus31 commented 2 years ago

Hello,

I am getting this issues after installing the library

[2022-04-23 14:34:40] development.ERROR: file_get_contents(/var/www/html/vendor/itsmejoshua/novaspatiepermissions/src/../dist/css/tool.css): Failed to open stream: No such file or directory {"userId":22,"exception":"[object] (ErrorException(code: 0): file_get_contents(/var/www/html/vendor/itsmejoshua/novaspatiepermissions/src/../dist/css/tool.css): Failed to open stream: No such file or directory at /var/www/html/vendor/laravel/nova/src/Asset.php:115)

[2022-04-23 14:34:42] development.ERROR: file_get_contents(/var/www/html/vendor/itsmejoshua/novaspatiepermissions/src/../dist/js/tool.js): Failed to open stream: No such file or directory {"userId":22,"exception":"[object] (ErrorException(code: 0): file_get_contents(/var/www/html/vendor/itsmejoshua/novaspatiepermissions/src/../dist/js/tool.js): Failed to open stream: No such file or directory at /var/www/html/vendor/laravel/nova/src/Asset.php:115)

Any ideas how to fix it? Thank you.

moroneyio commented 2 years ago

This will be fixed in the next version (in the coming days) we don't rely on these files

You can safely remove/comment out the following in the following file Novaspatiepermissions.php

Nova::script('novaspatiepermissions', DIR.'/../dist/js/tool.js'); Nova::style('novaspatiepermissions', DIR.'/../dist/css/tool.css');

moroneyio commented 2 years ago

A fix has been provided today, we have removed the call too the assets