Closed homanp closed 2 months ago
Followed the setup guide and the minimal example template you provided: https://github.com/clerk/clerk-expo-quickstart
Getting this error when running npm run start
in the iOS simulator.
Recorded a Loom for it as well: https://www.loom.com/share/83405ef6a2924071af97050133aadf5c
Please advise
Full trace:
ERROR TypeError: window.addEventListener is not a function (it is undefined), js engine: hermes
at ContextNavigator (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:145630:24)
at ExpoRoot (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:145586:28)
at App
at ErrorToastContainer (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:234398:24)
at ErrorOverlay
at withDevTools(ErrorOverlay) (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:233901:27)
at RCTView
at View (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:41520:43)
at RCTView
at View (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:41520:43)
at AppContainer (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:41363:25)
at main(RootComponent) (http://192.168.86.245:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:119719:28)
+1
I'm also seeing this, is it just version 2.2.6 ? Downgrading to 2.2.5 fixed the issue for me
~@mr-ryan-james @homanp can you confirm that 2.2.5 fixes the issue? I tried it locally starting from 2.1.1 - 2.2.5 and still getting it.~ Looks like a cache issue on my end and can confirm 2.2.5 works. We're actively investigating and will provide an update as soon as possible! Thank you
Hi @homanp, can you set your clerkJSVersion
to 5.18.0
and see if it fixes the issue? Thanks!
<ClerkProvider clerkJSVersion="5.18.0" publishableKey={publishableKey}>
<Slot />
</ClerkProvider>
Edit: Please see comment above
I'm also seeing this, is it just version 2.2.6 ? Downgrading to 2.2.5 fixed the issue for me
Will try
Fixed in https://github.com/clerk/javascript/pull/4095. Should be available in the next release.
Please use @clerk/clerk-expo@2.2.5
for now 🫡
Fixed in #4095. Should be available in the next release.
Please use
@clerk/clerk-expo@2.2.5
for now 🫡
First class support
Hi everyone! The fix is available now on @clerk/clerk-expo@2.2.8
. We appreciate your patience!
Preliminary Checks
[X] I have reviewed the documentation: https://clerk.com/docs
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/superagent-ai/qms-app
Publishable key
pk_test_ZmxlZXQtdGVybWl0ZS05OS5jbGVyay5hY2NvdW50cy5kZXYk
Description
Steps to reproduce:
Expected behavior:
Should not throw windowEventListener errors as we are not in a browser env.
Actual behavior:
Throws windowEvenetListener error.
Environment