React native web error: __vite_ssr_import_0__.default is not a function #1637
Replies: 2 comments 18 replies
-
I don't think this is related to Vike, but let me know if you have evidence that links this to Vike. |
Beta Was this translation helpful? Give feedback.
-
Is there a go-to way of fixing esmodules upstreams? For example, I could not find a way to ignore this locally (via a vite option or using bun) and I don't know what's the way to fix upstream. Note that |
Beta Was this translation helpful? Give feedback.
-
Description
To reproduce:
Simply clone the repro from: https://github.com/zoriya/vike-react-native-web-bug
OR:
yarn create @batijs/app --react
)ssr: false
is set in the +configIf ssr is enabled (
ssr: true
in +config), the following error happens (please note that usingssr.noExternal
orvite-plugin-cjs-interop
does not fix the issue):Beta Was this translation helpful? Give feedback.
All reactions