You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warn Package @sentry/react-native contains invalid configuration: "dependency.platforms.ios.sharedLibraries" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
In my case (RN 0.69.2 // Xcode 13.4.1 // M1 Mac)
The Android build runs successfully, but the ios build was failing with the same message.
warn Package @sentry/react-native contains invalid configuration: "dependency.platforms.ios.sharedLibraries" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
I got the same message with Sentry-react-native v4.2.2 and with v5.0.0-alpha.1 too.
I also tested a forced Error to test the sentry integration and it's being reported on the Sentry dashboard. throw new Error("My first Sentry error!");
Activity
marandaneto commentedon Jul 24, 2022
@ajp8164 Are you using RN >= 0.69? Please try https://github.com/getsentry/sentry-react-native/releases/tag/5.0.0-alpha.1
marandaneto commentedon Aug 1, 2022
@ajp8164 any news here?
Keshavdulal commentedon Aug 4, 2022
In my case (RN 0.69.2 // Xcode 13.4.1 // M1 Mac)
The Android build runs successfully, but the ios build was failing with the same message.
warn Package @sentry/react-native contains invalid configuration: "dependency.platforms.ios.sharedLibraries" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.I got the same message with Sentry-react-native
v4.2.2and withv5.0.0-alpha.1too.So I dug a little deep.
I followed this Medium Article thanks to this StackOverflow explanation.
And now I am getting a successful build on iOS.
I also tested a forced Error to test the sentry integration and it's being reported on the Sentry dashboard.
throw new Error("My first Sentry error!");I am using the alpha release at the moment.
I hope this helps someone.
marandaneto commentedon Aug 4, 2022
#2332
ajp8164 commentedon Aug 13, 2022
I'm using RN 0.69.4. I have not tried the beta. I'm still on 4.2.3 but I'm not seeing the error anymore. Idk 😁
KrisLau commentedon Aug 15, 2022
I still see the error on mine. Latest package version for react native and this package
ajp8164 commentedon Aug 15, 2022
I'll revise ;-) Had my project in a temp state. Yeah. Still there 😊
KrisLau commentedon Aug 16, 2022
@marandaneto
marandaneto commentedon Aug 16, 2022
Either you use https://github.com/getsentry/sentry-react-native/releases/tag/5.0.0-alpha.1 or https://docs.sentry.io/platforms/react-native/troubleshooting/#react-native-069-and-higher