-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get a compile error when using vite-ssg #20
Comments
Update, what worked for me, but unfortunately can't do this for
|
I am having the same issue using vite ssr. @nenadnovakovic-sh did you ever figure out a solution? |
Hi there, Starting from v2.0.0 its type is module. I haven't had a chance to test server side rendering yet. You can certainly import it now. However, there are bits that will potentially break. Stripe.js is a client-first library, so it attaches itself to window. And vue-stripe-js relies on that. I have been thinking about globalThis instead. If you can mark StripeElements and StripeElement to render as client components, they should work as expected. Summarizing:
|
v2.0.0 works with Nuxt 3 and my best guess for vite-ssg - wrap it with |
Can you please take a look at this and let me know what's the work-around until fixed?
The text was updated successfully, but these errors were encountered: