The Mix manifest does not exist when it does exist

后端 未结 10 1805
醉酒成梦
醉酒成梦 2020-12-23 20:56

For my admin panel I extract all the assets including the manifest-json.js to mix.setPublicPath(path.normalize(\'public/backend/\')).

All t

相关标签:
10条回答
  • 2020-12-23 21:19

    try the following commands:

    npm install

    npm run dev

    0 讨论(0)
  • 2020-12-23 21:23

    In shared hosts and laravel 5.6 tested: after doing standard levels such as explained here; two levels needed: in app/Providers/AppServiceProvider.php:

    $this->app->bind('path.public', function() {
        return realpath(base_path().'/../public_html');
    });
    

    and in public_html file make .htaccess file with content:

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?/$1 [L]
    </IfModule>
    <IfModule !mod_rewrite.c>
      ErrorDocument 404 /index.php
    </IfModule>
    

    source: here this file most change for some situations.

    that's all and solved my problem

    0 讨论(0)
  • 2020-12-23 21:25

    I had same exception after deployment laravel project to server. It was working perfectly fine on localhost but after lot of research I found a solution. If you encounter this exception on server then you have to bind your public path to public_html

    Just go to under the app/Providers, you will find your AppServiceProvider file and inside boot() method make the binding as below.

       $this->app->bind('path.public', function() {
            return base_path().'/../public_html';
        });
    
    0 讨论(0)
  • 2020-12-23 21:25

    I had the same issue with a Laravel package, its assets were not published:

    This solved the issue for me:

    php artisan vendor:publish --tag=telescope-assets --force

    Sources: https://github.com/laravel/telescope/issues/136 https://github.com/laravel/telescope/issues/250

    0 讨论(0)
提交回复
热议问题