#Inertia\ComponentNotFoundException - No page renders on deployed server

1 messages · Page 1 of 1 (latest)

tiny sandal
#

I can develop my app just fine on my local machine, but deploying it on a shared hosting platform breaks it. Inertia apparently fails at the following:

Route::get('/', function () {
    return Inertia::render('Landing');
});

Any ideas on how to fix this?

normal kettle
#

Are you sure your paths all match, with casing? Your local machine is probably case insensitive, while your server is case sensitive.

tiny sandal
#

I'm sure that everything matches. My resources/app.js file looks like this

#
    resolve: (name) => {
        const pages = import.meta.glob("./pages/**/*.vue", { eager: true });
        let page = pages[`./pages/${name}.vue`];
        page.default.layout = Shell;
        return page;
    },
#

Any I don't think it's a case mismatch problem either. My local machine is case sensitive.

normal kettle
#

And also your Inertia config reflects the same path?

tiny sandal
#
    'page_paths' => [

        resource_path('js/Pages'),

    ],
#

My bad

#

gonna aplly the fix and see if it works

tiny sandal