-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[EXPO 50] Super Expression must either be null or a function #1503
Comments
Can you please share the whole backtrace? |
Hey @saghul , I do not have the entire backtrace, or a full repro, but I'm pretty certain this is, to at least some extent, linked to this issue: #1488 It seems like starting from RN 0.73, there's a mismatch in the expected version of There's also a pending PR in expo/config-plugins#211 which also highlights this issue. I hope this gives at least a little direction on what might be the root issue here. |
IMG_4833.mp4Its a bit complicated i had to take a video because my android device is embedded in a casing, and have no access to screenshot buttons ahah |
I can confirm there are no issues with SDK 49 |
I don't get it, it should be possible to use different versions, just like any other Node package... We don't rely on the globals but import from the actual package... Alternatively we could downgrade, but that will be a pain :-/ |
Yup, even if you force Metro to explicitly use the one specified by Do you think there would be tangible downsides to downgrading & keeping |
No downside other than having to do the actual work. |
Hmm, okay. Yeah, I think it might be worth at least trying to downgrade to see if it will resolve this issue. |
Hmm, okay. Yeah, I think it might be worth at least trying to downgrade to see if it will resolve this issue. @saghul If you know off the top of the head the concrete steps that would need to be taken to do this, I can perhaps do a patch locally and test if it works, and if all works well, maybe I can submit a PR. |
It's not a simple patch because the API changed. |
Hey @saghul Check this GetStream/stream-video-js#1231 (comment) comment out for a potential workaround. While this does seem to work, I'm not sure whether it should be considered as a de-facto solution. With that said, it might still be a viable idea to align the API of |
Yep, I'll work on the downgrade as soon as I have some spare cycles... |
Honestly surprised how something simple is causing such an issue 🤔 |
Should be easy to revert since it'll be 1 commit I hope... |
Currently looking at reverting to a previous point, not exactly sure why we used |
have you seen this partykit/partykit#516 that i tagged for ? Maybe could help |
I don't think that's a good solution. |
After looking over a few things i can understand the previous use of a custom event target but as for reverting, we could potentially do a better job but depending on how you look at it due to converting over to TypeScript and the existence of wonky polyfills, that could prove to be a bit of a pain 😨 |
this has been fixed in the expo plugin https://github.com/expo/config-plugins/blob/main/apps/react-native-webrtc/metro.config.js |
Oh, nice! Has there been a release made? |
Well hold on. Those not using Expo are going to run into this as well. I think downgrading is the sensible thing to do. |
Maybe that's an option indeed. Would you be able to submit a pr to that end? |
Would definitely be a viable solution vs reverting and using directive comments to ignore the compiler hell 😆 |
I tried installing latest |
@wajeshubham that has helped me as well! Thx <3 |
I wonder if making it a peer dependency would help? |
Simplest of change but could help 🤔 |
So what the last decision about this ? 😊 |
FWIW Changing the import form |
Ha, interesting! Perhaps it's fooled by the fact that the name is technically different. This looks like the simplest workaround! |
this is such a nice workaround for this problem and a valid one! I guess the reason why this works is because we specify a specific file for metro and not the package, and so metro is forced to look into the directory of the webrtc package to find the file. |
I'd merge a PR with this workaround :-) |
Great find @feychenie 👍🏻 |
I'm using expo 50 dev client on Android
Whenever I write :
from MediaStreamTrackEvent.ts 18:43
The text was updated successfully, but these errors were encountered: