Support the ongoing development of Laravel.io →
Breeze Laravel
0

That's a known issue and should be fixed in the next release of laravel-vite-plugin, for now, @timacdonald recommends this temporary fix.

export default defineConfig({
    // ...
    ssr: {
        noExternal: [
            'laravel-vite-plugin',
            '@inertiajs/server',
        ],
    },
});

Remember to rebuild using npm run build after you've added 'laravel-vite-plugin' to the noExternal array.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.