thedevdojo / voyager-polls

Create Interactive Polls with this hook for Voyager
MIT License
47 stars 15 forks source link

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

Open manzor29 opened 6 years ago

manzor29 commented 6 years ago

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?

codecraft302 commented 6 years ago

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

codecraft302 commented 6 years ago

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

FrankyJust commented 6 years ago

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?