Replies: 1 comment 2 replies
-
I don't think Btw, I'm a little confused. This is a Vitest discussion, but is your question purely about Vite SSR? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Here is the situation:
A ssr component providing a child component - client side a bunch of promises and consuming them by using the new brand "use" hook.
Similar to the example provided by react.
When i run the test im getting " Error: Uncaught [TypeError: vite_ssr_import_1.use is not a function] "
Is there any unsupported versions of react by vite?
can be related with my logic?
is there a known workaround? like for instance mock the function?
Have a great day!
Beta Was this translation helpful? Give feedback.
All reactions