Skip to content

react-native link occasionally errs with "str.replace is not a function", no way to debug #12940

Description

@j2kun

Description

I have an xcode workspace set up with nonstandard configurations, and adding a new react-native ios dependency sometimes fails with str.replace is not a function. I have no idea how to debug this, as the linking command doesn't provide a --verbose option, or anything similar.

E.g.

react-native link react-native-image-crop-picker
rnpm-install info Android module react-native-image-crop-picker is already linked 
rnpm-install info Linking react-native-image-crop-picker ios dependency 
rnpm-install ERR! It seems something went wrong while linking. Error: str.replace is not a function 
Please file an issue here: https://github.com/facebook/react-native/issues 

str.replace is not a function

I cannot reproduce this issue from a fresh project install, and I have no idea where to look for the problem.

react-native-cli: 2.0.1
react-native: 0.40.0

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions