voyager-polls icon indicating copy to clipboard operation
voyager-polls copied to clipboard

missing file "public/js/polls-app.js"

Open manzor29 opened this issue 7 years ago • 3 comments

When I click 'Add New' button in Polls section I get empty page and the error on my browser's dev tools:

GET http://my-project.dev/public/js/polls-app.js 404 (Not Found)

Why that file wasn't created during installation of voyager-polls?

manzor29 avatar Jan 20 '18 12:01 manzor29

I have the same problem, is there a possible solution? maybe I did something wrong?

codecraft302 avatar Feb 05 '18 16:02 codecraft302

I looked at the changes on the project, and I found this https://github.com/thedevdojo/voyager-polls/compare/v1.0.1...master#diff-17fb4e3d571815cc4c4fcf9505c1bbdb if you return <script><?php include(VOYAGER_POLLS_PATH.'/app.js'); ?> </script>instead <script type="text/javascript" src="{{ asset('/js/polls-app.js') }}"></script> in file vendor\voyager-polls\resources\views\edit-add.blade.php then everything will work, except for the fullness of the language variables, but this is another matter

codecraft302 avatar Feb 05 '18 20:02 codecraft302

I run into the same issue. I've changed the file edit-blade.php as above mentioned, and this generates now the input screen/fields. But after filling in the fields, when I'm trying to save it to the dbs I get a Network error. Nothing is saved. Any solution?

FrankyJust avatar Nov 03 '18 08:11 FrankyJust