Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] - [fix] install command not installing Laravel Jetstream and failing #359

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

joelbutcher
Copy link
Owner

@joelbutcher joelbutcher commented Jun 24, 2024

Fixes the following error:

   ErrorException

  copy(/Users/joel/Projects/blog/resources/js/Pages/Profile/Partials/ConnectedAccountsForm.vue): Failed to open stream: No such file or directory

  at /Users/joel/Projects/socialstream/src/Installer/Drivers/Jetstream/InertiaDriver.php:48
     44▕      * Copy the profile views to the app "resources" directory for the given stack.
     45▕      */
     46▕     public function copyProfileViews(InstallOptions ...$options): static
     47▕     {
  ➜  48▕         copy(__DIR__.'/../../../../stubs/jetstream/inertia/resources/js/Pages/Profile/Partials/ConnectedAccountsForm.vue', resource_path('js/Pages/Profile/Partials/ConnectedAccountsForm.vue'));
     49▕         copy(__DIR__.'/../../../../stubs/jetstream/inertia/resources/js/Pages/Profile/Partials/SetPasswordForm.vue', resource_path('js/Pages/Profile/Partials/SetPasswordForm.vue'));
     50▕         copy(__DIR__.'/../../../../stubs/jetstream/inertia/resources/js/Pages/Profile/Show.vue', resource_path('js/Pages/Profile/Show.vue'));
     51▕
     52▕         return $this;

  1   /Users/joel/Projects/socialstream/src/Installer/Drivers/Jetstream/InertiaDriver.php:48

  2   /Users/joel/Projects/socialstream/src/Installer/Drivers/Driver.php:169
      JoelButcher\Socialstream\Installer\Drivers\Jetstream\InertiaDriver::copyProfileViews(Object(JoelButcher\Socialstream\Installer\Enums\InstallOptions), Object(JoelButcher\Socialstream\Installer\Enums\InstallOptions), Object(JoelButcher\Socialstream\Installer\Enums\InstallOptions), Object(JoelButcher\Socialstream\Installer\Enums\InstallOptions), Object(JoelButcher\Socialstream\Installer\Enums\InstallOptions))

This was caused by two things:

  1. A version conflict for paragonie/constant_time_encoding between laravel/socialite(requiring v3.0) and pragmarx/google2fa (requiring v2.7).
  • fixed by overriding the requirement in our own composer.json
  1. The jetstream:install command hanging on the final prompt to run migrations.
  • fixed by adding --no-interaction to the install script for Laravel Jetstream

@joelbutcher joelbutcher changed the title fix: install Jetstream with all deps [6.x] fix: install Jetstream with all deps Jun 24, 2024
@joelbutcher joelbutcher force-pushed the fix/install-command branch from a0f53f8 to bb640bd Compare June 24, 2024 05:57
@joelbutcher joelbutcher changed the title [6.x] fix: install Jetstream with all deps [6.x] - [fix] install command not installing Laravel Jetstream and failing Jun 24, 2024
@joelbutcher joelbutcher merged commit 07f7366 into 6.x Jun 24, 2024
37 checks passed
@joelbutcher joelbutcher deleted the fix/install-command branch June 24, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant