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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community