Voyager: Loading failed for ... /voyager-assets?path=js/app.js ?

Created on 9 Aug 2019  路  3Comments  路  Source: the-control-group/voyager

Version information

  • Laravel: v5.6.39
  • Voyager: v1.2.6
  • PHP: 7.2.14my
  • Database: MySQL Server version 5.7.25

Description

I was upgrading from v1.1.10 to v1.2.6 and now the page is not loading (the wheel spins forever).

Steps To Reproduce

Steps to reproduce the behavior:

  1. Upgrading from v1.1.10 to v1.2.6
  2. Removed public/vendor/tcg/voyger folder
  3. Removed assets_pathfrom config/voyger.php
  4. Add controllers php artisan voyager:controllers
  5. Modify App/Http/Controllers/Voyager/VoyagerController.php
  public function index()
  {
    return view('admin.index');
 }
  1. Point to this blade:
@extends ('voyager::master')

@section('content')
Hallo
@endsection
  1. Load Admin Page
  2. See error

Expected behavior

Render page in finite time.

Screenshots

This is how it looks when I open http://member-nlp.test/admin. There is no menu loaded or anything, just a wheel spinning:
image

This is the shown by the inspector, showing that js/app.js could not be loaded (i have not mentioned that file in config/voyager.php:
image

Additional context

When I change the index method in App/Http/Controllers/Voyager/VoyagerController.php like this:

public function index()
{
  return 1;
}

Then http://member-nlp.test/admin will return sucessfuly 1.

Most helpful comment

The path to the assets contains %3Fv%3D2 which translates to ?v=2 which the controller can't find.
Where does it come from?

All 3 comments

The path to the assets contains %3Fv%3D2 which translates to ?v=2 which the controller can't find.
Where does it come from?

Oh true, I forgot that I overwrote the master.blade by /resource/views/vendor/voyager/master.blade. Removed the ?v=2 and now its working. Thanks a lot!!!

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wp-src picture wp-src  路  3Comments

raoasifraza1 picture raoasifraza1  路  3Comments

zzpwestlife picture zzpwestlife  路  3Comments

kevinjon27 picture kevinjon27  路  3Comments

saintmim picture saintmim  路  4Comments