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

Fixes publishing jetstream-inertia-auth-pages, that was referencing an old stub path #1210

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Fixes publishing jetstream-inertia-auth-pages, that was referencing an old stub path #1210

merged 1 commit into from
Jan 4, 2023

Conversation

juse-less
Copy link
Contributor

When publishing Inertia assets (artisan vendor:publish --provider=Laravel\\Jetstream\\JetstreamServiceProvider, artisan vendor:publish --tag=jetstream-inertia-auth-pages, etc), you're presented with an error that some of the paths related to jetstream-inertia-auth-pages can't be located.

This is because Jetstream v2.11.0 (more specifically PR #1110) moved the Vue component stubs from stubs/inertia/resources/js/Jetstream to stubs/inertia/resources/js/Components.

I adjusted those paths in the service provider that registers the publishables.
I also removed the publishing of stubs/inertia/resources/js/Components/ValidationErrors.vue entirely, as that component was removed in v2.11.1 (PR #1123).

The Jetstream installation command was already publishing everything correctly.

I've tested against the project where I accidentally noticed this (fresh Laravel repo), and my changes made both publish commands mentioned above work.

Screenshot of the error in the terminal ScreenShot 2023-01-04 at 14 48 30

@taylorotwell taylorotwell merged commit 0c4dd31 into laravel:2.x Jan 4, 2023
@juse-less juse-less deleted the bugfix/inertia-vue-component-stub-path branch January 4, 2023 15:12
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.

2 participants