-
Notifications
You must be signed in to change notification settings - Fork 255
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
Incompatibility with Expo SDK 44 + EAS Updates #1683
Comments
Some of the relevant usages that needs to be patched:
We patched all usages using patch-package like so as a temporary workaround: - Constants.manifest.sdkVersion,
+ (Constants.manifest || Constants.manifest2).sdkVersion, |
Hi @kennethlynne - |
You should prioritize it as it is going to be the default way for many teams to build their app. Would hate to move away from bugsnag as we love the product and rely on it for the rest of the infrastructure, but we're not going to let bugsnag hold us back. Luckily able to move forward by just applying the patch mentioned for now |
@kennethlynne - EAS Update is still in preview. It's something that we at Expo and the folks at Bugsnag can work on supporting together as it progresses. |
True, gotcha! 👍 |
Was a bit grumpy from debugging issues related to EAS channels, dev clients and bugsnag for hours when commenting, but I've had my coffee now. Good point, it is still in preview @brentvatne 😂 Related thread: https://forums.expo.dev/t/custom-dev-client-extra-variables-are-undefined/61414/8 |
@kennethlynne - thanks for raising this issue. I was running into the same issues integrating it. One question: Did you run into a problem with building a dev-client for device (developmentClient=true, distribution=internal)?
EAS builds other targets successfully - dev-client for simulator and internal preview (developmentClient=false, distribution=internal). |
We have not seen anything like that and we're able to build our dev client successfully with bugsnag atm. Some relevant dependencies and set up confirmed to work for us (since I have no idea what else might be the problem):
babel.config.js
|
@kennethlynne - thanks for the quick reply and sharing your dependencies. Lemme give this one more try. |
Please note @thorbenprimke that the patch I initially suggested is partially incorrect. Here is a PR that improves the patch #1686 |
I got around to digging into it further. The exception (a similar one here) itself happens because Hermes does not support named groups in regex functions. The dependency on the ansi-styles library that contains the regex was already in our codebase - dependency of Jest. And Jest is only a dev dependency. However removing Jest resolved the build issue. I have also verified that just adding Bugsnag (as a dependency) and Jest (as a dev dependency) reproduces the build failure with a fresh Expo project building on EAS. Maybe I missed something along the way but that's where I got to. |
Hi, I'm posting here as it can help devs who are stuck on this issue. Thanks a lot @thorbenprimke for your investigation. A short term solution would be installing this babel plugin Credits: facebook/hermes#231 (comment) |
@Christopher2K - thanks for leaving that tip. I'll give it a try. |
Describe the bug
TypeError: null is not an object (evaluating 'Constants.manifest.logUrl')
Steps to reproduce
Use EAS updates instead of legacy updates and Constants.manifest will be null, and Constants.manifest2 will instead be defined
Environment
Bugsnag version: "@bugsnag/expo": "7.16.0",
The text was updated successfully, but these errors were encountered: