SSR and dynamic javascript package loading #513
-
Hello Vite Masters, I am using
I am trying to achieve the following: I want to use ssr and have a vue component that uses the SplideJS - vue package. My attempts: "ignoring it in the
My main.js file
My ssr.js
In my component I tried:
When I start the inertia-ssr server via
I am building via "build": "vite build && vite build --ssr". Everything works fine without ssr. Right now it is sliding too, but isn't responsive at all + the error is confusing me. I copied a lot of code from a fresh laravel project but unfortunately there's not a lot of docu about "disable packages for ssr" Any ideas what's the correct way to make this work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved it via:
|
Beta Was this translation helpful? Give feedback.
Solved it via: