Closed borovez closed 1 year ago
@borovez I would add this to your vite config to make it work. @robertboes helped me crack this as well.
ssr: {
noExternal: ['@inertiajs/server', '@headlessui-float/vue'],
},
Fixed in v0.9.2
package.json "@headlessui-float/vue": "^0.9.1", "@headlessui/vue": "^1.7.2", "@inertiajs/inertia": "^0.11.0", "vite": "^3.0.0",
Composer.json "laravel/framework": "^9.19", "laravel/jetstream": "^2.11",
Installed Jetstream with SSR https://jetstream.laravel.com/2.x/installation.html#:~:text=php%20artisan%20jetstream%3Ainstall%20inertia%20%2D%2Dssr
Describe the bug When visiting a page that uses any component with Float, I get the following error in the Inertia SSR Server log:
To Reproduce
vite build && vite build --ssr
)node bootstrap/ssr/ssr.mjs
Expected behavior There shouldn't be any error pertaining to the import of Float when the Inertia SSR node server is running.