Cloned working git repository with socialstream does not see jetstream components
clarkrickman2 opened this issue · 8 comments
Am I missing something simple? I've beat my head against this for hours. Thank-you!
Steps to reproduce the behavior:
- Create a new laravel project
- Install and setup socialstream per instructions and verify everything is working properly
- Commit everything to github
- Clone repository on another developer's machine
- Composer install && npm install && npm run dev
- Go to login screen and see error "Unable to locate a class or view for component [authentication-card-logo]."
I understand socialstream like jetstream can only be installed on a new project.
Environment context
- Socialstream version: 3.9.2
- Jetstream stack: Livewire
- Laravel version: 9.52.7
- PHP version: 8.2.6
@clarkrickman2 can you confirm this only occurs when you've installed socialstream, and not when you've only installed Jetstream?
@joelbutcher Hi! Yes! I have several other projects with Jetstream without this issue.
@clarkrickman2 I'm going to try and replicate the problem – can you answer the following questions, please?
Create a new laravel project
Where you usingcomposer create-project
orlaravel new
to achieve this?
- Commit everything to github
- Clone repository on another developer's machine
What tool were you using to interact with Git? If you were using the CLI, can you provide the exact commands you used?
git init
git remote add origin ---remote repository URL---
git add *
git commit -m "message"
git push origin main
then on dev machine
git clone ---remote repository url---
then on dev machine
git clone ---remote repository url---
@clarkrickman2 just tried to reproduce the issue, uploaded a project to a private repo, and cloned it -in the same machine, but different directory-, I didn't encounter any issue.
Socialstream's usage of Jetstream's components is mild and default (it doesn't touch the original Jetstream components, e.g: authentication-card-logo
), see:
Needless to say, after cloning, I had to:
composer install
composer run post-root-package-install
composer run post-create-project-cmd
npm install
npm run dev
If you run " git ls-files | grep views/components " the output should looks like:
resources/views/components/action-link.blade.php
resources/views/components/action-message.blade.php
resources/views/components/action-section.blade.php
resources/views/components/application-logo.blade.php
resources/views/components/application-mark.blade.php
resources/views/components/authentication-card-logo.blade.php
resources/views/components/authentication-card.blade.php
resources/views/components/banner.blade.php
resources/views/components/button.blade.php
resources/views/components/checkbox.blade.php
resources/views/components/confirmation-modal.blade.php
resources/views/components/confirms-password.blade.php
resources/views/components/connected-account.blade.php
resources/views/components/danger-button.blade.php
resources/views/components/dialog-modal.blade.php
resources/views/components/dropdown-link.blade.php
resources/views/components/dropdown.blade.php
resources/views/components/form-section.blade.php
resources/views/components/input-error.blade.php
resources/views/components/input.blade.php
resources/views/components/label.blade.php
resources/views/components/modal.blade.php
resources/views/components/nav-link.blade.php
resources/views/components/responsive-nav-link.blade.php
resources/views/components/secondary-button.blade.php
resources/views/components/section-border.blade.php
resources/views/components/section-title.blade.php
resources/views/components/socialstream-icons/bitbucket.blade.php
resources/views/components/socialstream-icons/facebook.blade.php
resources/views/components/socialstream-icons/github.blade.php
resources/views/components/socialstream-icons/gitlab.blade.php
resources/views/components/socialstream-icons/google.blade.php
resources/views/components/socialstream-icons/linkedin.blade.php
resources/views/components/socialstream-icons/twitter.blade.php
resources/views/components/socialstream.blade.php
resources/views/components/switchable-team.blade.php
resources/views/components/validation-errors.blade.php
resources/views/components/welcome.blade.php
I'm closing this as I could not replicate this issue with the following steps using two laptops; one personal, one dev.
On the personal laptop
- Create a new repository on GitHub
blog-test
composer create-project laravel/laravel:9.52.7 blog
cd blog
composer require joelbutcher/socialstream:^3.9.2
php artisan socialstream:install --stack=livewire --teams --api --verification --pest
git init
git add .
git commit -m "initial commit"
git remote add origin git@github.com:joelbutcher/blog-test.git
git push -u origin main
On the dev laptop (w/ posgres)
cd ~/Projects
valet park
git clone git@github.com:joelbutcher/blog-test.git
cd blog-test
composer install
npm install && npm run dev
createdb laravel
cp .env.example .env
php artisan key:generate
vim .env
set the following vars:
-APP_URL=http://localhost
+APP_URL=http://blog-test.test
-DB_CONNECTION=mysql
+DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
-DB_PORT=3306
+DB_PORT=5432
DB_DATABASE=laravel
-DB_USERNAME=root
+DB_USERNAME=postgres
DB_PASSWORD=
php artisan migrate
- Open Chrome and visit
http://blog-test.test/login
:
Thank you! I apologize and appreciate your time. I am sure I have something mucked up. Great work!
@clarkrickman2 You're very welcome.
If you use Socialstream extensively and you'd like to show you're appreciation (and are able to!), please consider sponsoring me and my work from as little as a cup of coffee /month - it would me the world and get me a step closer to being able to work on providing high quality Laravel packages more often!