epartment / nova-unique-ajax-field

A Laravel Nova field that validates for uniqueness while typing through an AJAX request, instead of on-save in Nova.
MIT License
19 stars 4 forks source link

Errors finding dist files #5

Open drsdre opened 5 years ago

drsdre commented 5 years ago

This plugin is not able to find some files:

[2019-05-15 12:37:14] local.ERROR: file_get_contents(/laravel/vendor/epartment/nova-unique-ajax-field/src/../dist/js/field.js): failed to open stream: No such file or directory {"userId":1,"exception":"[object] (ErrorException(code: 0): file_get_contents(/laravel/vendor/epartment/nova-unique-ajax-field/src/../dist/js/field.js): failed to open stream: No such file or directory at /laravel/vendor/laravel/nova/src/Http/Controllers/ScriptController.php:27) [2019-05-15 12:37:06] local.ERROR: file_get_contents(/laravel/vendor/epartment/nova-unique-ajax-field/src/../dist/css/field.css): failed to open stream: No such file or directory {"userId":1,"exception":"[object] (ErrorException(code: 0): file_get_contents(/laravel/vendor/epartment/nova-unique-ajax-field/src/../dist/css/field.css): failed to open stream: No such file or directory at /laravel/vendor/laravel/nova/src/Http/Controllers/StyleController.php:27)

rik43 commented 5 years ago

assets not builded. use instead: composer require rik43/nova-unique-ajax-field

or make manually (not recommended) cd vendor/epartment/nova-unique-ajax-field npm install npm run production

don't forget to run it also on production...

thomasmoors commented 5 years ago

You could try composer require epartment/nova-unique-ajax-field:master