title: Unable to write file at location: to://app.js (Laravel 9 composer update on staging site)
body: <p>So I just ran a composer updater on a staging site for an app I'm working on and i get this error after composer has generated it's package manifest:</p>
  <pre><code>&gt; @php artisan vendor:publish --tag=laravel-assets --ansi --force
  
     League\Flysystem\UnableToWriteFile 
  
    Unable to write file at location: to://app.js.
  
    at vendor/league/flysystem/src/UnableToWriteFile.php:24
       20▕     private $reason;
       21▕ 
       22▕     public static function atLocation(string $location, string $reason = '', Throwable $previous = null): UnableToWriteFile
       23▕     {
    ➜  24▕         $e = new static(rtrim(&quot;Unable to write file at location: {$location}. {$reason}&quot;), 0, $previous);
       25▕         $e-&gt;location = $location;
       26▕         $e-&gt;reason = $reason;
       27▕ 
       28▕         return $e;
  
        +24 vendor frames 
    25  artisan:37
        Illuminate\Foundation\Console\Kernel::handle()
  Script @php artisan vendor:publish --tag=laravel-assets --ansi --force handling the post-update-cmd event returned with error code 1
  </code></pre>
  <p>I tried to rebuild the symbolic links with <code>php artisan storage:link</code> which was successful but still have the same error. I have also ran <code>npm run dev</code> and this finished too and created app.js (in public/js/ along with my other js files for this project). I have also just ran <code>php artisan vendor:publish --tag=laravel-assets --ansi --force</code> and as I expected I get the same error.</p>
  <p>I assume this needs to be resolved for everything to work right despite it appearing to be correct? So what would I need to do to remove this error?</p>
  <p>thanks</p>