Closed secondmanveran closed 4 months ago
hi @secondmanveran, I'm not sure to understand how to fix your issue. but I can give you some advices. I think you need to specify another directory for your ssr build otherwise the ssr build will overwrite you're other build. for that you need to specify your config with vite base
and build.outdir
(not with vite-plugin-symfony : buildDirectory
/ publicDirectory
)
after that can you disable vite-plugin-symfony
and show your manifest.json
generated for your 2 builds ? I can get a better idea of the issue.
Finally can you confirm that you encounter the same issue with the version 3.3.2 ?
hi @secondmanveran, have you tried my solution? otherwise I will close the ticket because it cannot be resolved without further details. do not hesitate to reopen it if you have additional elements to bring
When trying to build my ssr files the script can't resolve packages.
This is happening for
vue
@vue
@inertiajs
axios
form-data
... and that's where I stopped adding aliases.I'm using this package: https://github.com/cydrickn/sviv
This is my vite config:
And this is the
vite.ssr.config.js
:Is there something I'm missing? I use Vite all the time with Laravel, but this is my first time integrating it in Symfony.