Skip to content

@sentry/react-native contains invalid configuration #2391

Closed

Description

@ajp8164

Environment

SaaS (https://sentry.io/)

Version

4.2.0

Steps to Reproduce

  1. create a react native app
  2. add @sentry/react-native
  3. run app with metro

Expected Result

No warnings on app start.

Actual Result

Warning appears in console at app start.

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.

Activity

  1. marandaneto commented on Jul 24, 2022

    @marandaneto
    Contributor
  2. marandaneto commented on Aug 1, 2022

    @marandaneto
    Contributor

    @ajp8164 any news here?

  3. Keshavdulal commented on Aug 4, 2022

    @Keshavdulal

    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.

    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.

  4. marandaneto commented on Aug 4, 2022

    @marandaneto
    Contributor
  5. ajp8164 commented on Aug 13, 2022

    @ajp8164
    ContributorAuthor

    @ajp8164 any news here?

    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 😁

  6. KrisLau commented on Aug 15, 2022

    @KrisLau

    I still see the error on mine. Latest package version for react native and this package

  7. ajp8164 commented on Aug 15, 2022

    @ajp8164
    ContributorAuthor

    I'll revise ;-) Had my project in a temp state. Yeah. Still there 😊

  8. KrisLau commented on Aug 16, 2022

    @KrisLau
  9. locked and limited conversation to collaborators on Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions