1.3.8 won't work with expo anymore
1.3.7 worked with expo, but 1.3.8 doesn't, and gives this error:
32 Replies
same here, now only 1.3.6 works
Hey guys, can you try 1.3.9?
Thanks for the update, yes the original issue seems like it's fixed now but now I am getting a new type error
TypeError: Cannot read property 'subtle' of undefined, js engine: hermes
This might be unrelated but only adding one extra crypto polyfils fixed it I will drop that here soon
I have tried this, but no help
add this then import in your layout
Also tried this and doesn't help
how did you add ?
Do you put this in polyfills.js?
Yes you would add a new file in your project root and import it in your layout
It seems like even that doesn't fix the "subtle" message error. The only thing that fixes it for me is if i comment out the phone number plugin initialization in authClient (expo app side).
What unstable error are you talking about!?
This was the error I tried to fix
haha sorry i meant subtle
can you show the full error log?
this is what happens when I don't use custom crypto polyfill
GitHub
React Native build issue on v1.3.8 · Issue #4471 · better-auth/be...
Is this suited for github? Yes, this is suited for github To Reproduce Create a new expo app, install better-auth@1.3.8 and @better-auth/expo@1.3.8, setup according to docs, import a plugin from be...
can you try this?
I forgot to mention, yes react-native-webcrypto was the perfect solution it's just being too old I couldn't compile the devclient of expo itself
and this is working perfectly for my usecase
was the react-native-webcrypto requried before 1.3.7?
Nope only after
1.3.6 still working normally without anything
so 1.3.7 is broken right?
Hi I just tried few times
can you add expo-web-browser in app.config.ts plugins?
I did but still those errors are same
I tried new 1.3.10 beta 4 but still no luck
try to cleanup the node_modules?
This worked for me... But now I'm not able to load nativewind styles. Does anyone has this issue?
Updated to sdk 54?
Did but still without polyfils 1
3.10 beta 4 is the same as 1.3.9
are you using pg?
postgres? no powersync mysql in client side but on server side yes
hi, can you try 1.3.10-beta.7
I think we defnitely remove the incompatable code
yes, it works now without any issue
thanks man
1.3.10 is released
it's all good now, thanks
btw, it works on iOS production build ✅
awesome!