SSR - ESM Compability #387
Unanswered
ObjectAssign
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, what if you just to do in one line ?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, im running an application which are looking for a more modern Toast notification...
The initial pick is/was vue-toastnotification, it looks awesome and is easy to setup..
However, im using Laravel, Inertia, Vue3 Composition API with Vite and SSR....
And the {useToast} import fails my SSR badly...
I get this error:
import pkg from 'vue-toastification';
const { useToast } = pkg;
Node.js v18.17.1
Ive tried the solution in the log, however then useToast is just not recognised as a function, i've tried many different solutions by now and nothing comes up satisfying...
Am i doing something wrong, or is it just not compatible with my setup?
Beta Was this translation helpful? Give feedback.
All reactions