Uncaught (in promise) Error: Cannot find module './V2/Admin/Events/Partials/EventIntegrationGuide'

32 Views Asked by At

I am working on a Laravel, Vue3, and inertiajs project

This the controller function:

public function embedEvent(Request $request, Event $event)
{
    return Inertia::render('V2/Admin/Events/Partials/EventIntegrationGuide', [
        'event' => new EventResource($event),
    ]);
}

And this is the router:

Route::get('/event/embed/{event}', [EventController::class, 'embedEvent'])->name('events.embed');

This is the path of the component:

/resources/js/Pages/V2/Admin/Events/Partials/EventIntegrationGuide.vue

I tried these commands:

php artisan route:clear
php artisan route:cache

php artisan config:clear
php artisan config:cache

When I pushed my updates to my teammate its working fine for him.

0

There are 0 best solutions below