area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
270 stars 39 forks source link

Error when running Blast with Invoker #61

Open nathangross opened 1 year ago

nathangross commented 1 year ago

I just tried out Beyond Code's Invoker app and upon launch, I got an error that seemed to be related to this package. So I figured I'd cross-post this issue here too:

https://github.com/beyondcode/invoker-community/issues/318


OS: darwin Invoker Version: 2.10.0 Laravel Version: 9.34.0 Local project: true PHP Binary: /opt/homebrew/bin/php Route: /project/placeholder?project=local-jNgTuLwmLanmNUq8TaxKzz

Error:

ErrorException 

  mkdir(): Read-only file system

  at /Users/nathan/Code/pigworks/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:631
    627▕         if ($force) {
    628▕             return @mkdir($path, $mode, $recursive);
    629▕         }
    630▕ 
  ➜ 631▕         return mkdir($path, $mode, $recursive);
    632▕     }
    633▕ 
    634▕     /**
    635▕      * Move a directory.

      +3 vendor frames 
  4   [internal]:0
      A17\Blast\DataStore::__construct(Object(Illuminate\Filesystem\Filesystem))

      +19 vendor frames 
  24  phar:/Applications/Invoker.app/Contents/Resources/invoker.phar/src/Actions/GetCommandsAction.php:22
      Illuminate\Foundation\Console\Kernel::all()

This happens as soon as I open this particular project. I'm not sure what directory is failing to create. Does Invoker create a file or directory per project?

As soon as I removed this package, the project opens in Invoker without error. I wasn't really sure how to parse this. Any ideas what might be going on?

mrtimbrook commented 1 year ago

Blast needs to be able to write to the filesystem. It stores the story files generated from the blade files, the parsed tailwind config used for the auto-documentation, etc in the vendor/area17/blast directory.

I'll add a better test and error message for this.