Getting Started with Inertia, Vite & Vue 3 [Setup Guide]

Getting Started with Inertia, Vite & Vue 3 [Setup Guide]

David Grzyb

1 год назад

9,022 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@almirh
@almirh - 17.11.2023 20:01

Hi, which VScode theme have you setup in this video? Thanks for sharring us this vid:)

Ответить
@user-ex4oz7ph8z
@user-ex4oz7ph8z - 16.11.2023 19:49

Excellent. thank you so much, you explained it very well

Ответить
@JamesAutoDude
@JamesAutoDude - 15.11.2023 08:24

It seems like if you're using inertia, all you have to do in your app.js is put this:

import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/vue3';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';

createInertiaApp({
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
setup({ el, App, props, plugin }) {
return createApp({ render: () => h(App, props) })
.use(plugin)
.mount(el)
},
});

don't have to do anything else

Ответить
@slimyelow
@slimyelow - 23.10.2023 18:15

OMG. Thanks for this.

Ответить
@elieruhamya5291
@elieruhamya5291 - 23.10.2023 12:42

Thanks, it helps me so

Ответить
@spartacus7646
@spartacus7646 - 02.10.2023 19:44

Thanks as well David. Inertia is a wonderful product with great possibilities, but they really need to update their Installation docs. You helped with the last step which was my using the deprecated createInertiaApp() method not using resolvePageComponent. It is literally their lynch-pin which the entire functionality depends and they have yet to update the docs.

Ответить
@bowiemtl
@bowiemtl - 16.09.2023 00:33

Thank you sir, would NOT have been able to find this out on my own. The inertia docs are kind of a nightmare by leaving out certain information and setup guides despite the utility it can provide

Ответить
@heraldocastillo8763
@heraldocastillo8763 - 06.09.2023 23:00

Thank you.. but a i have a question about ziggy, is making a full page reload and i guess in not right?

Ответить
@noobtrader6960
@noobtrader6960 - 18.07.2023 00:39

how do import assets in vite?

Ответить
@user-qy6ey3zx8e
@user-qy6ey3zx8e - 16.07.2023 14:38

Inertia's docs just seem to be riddled with errors. It's easier to just code a separate API and Vue front end.

Ответить
@ahmeddeghady4510
@ahmeddeghady4510 - 27.05.2023 22:46

Oh my god thank you!! My first time using Inertia and my head was about to explode. Followed the documentation and had many errors being thrown at me, other tutorials were always outdates as they used webpack. Thanks again!

Ответить
@ragiedev-ve2rq
@ragiedev-ve2rq - 04.05.2023 07:44

thank you so much!

Ответить
@bieberbalazs6826
@bieberbalazs6826 - 05.04.2023 17:13

Getting Started with Inertia, Vite & Vue 3 Next time can you write in the title laravel as well please.

Ответить
@kenbuchanan6894
@kenbuchanan6894 - 05.03.2023 01:40

Thank you for putting this out there. This video should be the first video people watch when trying to set up a Vue, InertiaJS, Laravel app. It's a life saver!

Ответить
@gabrielmalek7575
@gabrielmalek7575 - 18.02.2023 02:51

did not work for me I don't know what I am doing wrong

Ответить
@sabeurmohammedamin8246
@sabeurmohammedamin8246 - 16.02.2023 23:12

thank you, very useful video.

Ответить
@gazorbpazorbian
@gazorbpazorbian - 08.02.2023 02:18

and what if your are not using valet/mac ? I'm using windows, and I try to spin the laravel dev server with the command php artisan serve and then I run the command npm run dev so it javascript is compiled and everything almost runs great but the links with ziggy aren't generated correctly because they are like localhost/admin while I need them to be localhost:8000/admin
and since it doesn't have a port, I can't click on the links.
any ideas on how to fix that?

Ответить
@themadladgaming
@themadladgaming - 28.12.2022 23:13

finally! Thanks David

Ответить
@hanghangchang
@hanghangchang - 21.12.2022 12:54

Thanks David, very useful information.

Ответить
@rafp8778
@rafp8778 - 18.12.2022 11:38

Thanks David ! Great video as always.

Ответить