Skip to content

cannot react property 'replace' of undefined when using react-native link #1

@macrozone

Description

@macrozone

i added react-native-pod to my project and got this error:

/path/to/project/node_modules/react-native-pod/lib/findPodTargetLine.js:4
  const targetName = projectName.replace('.xcodeproj', '');
                                 ^
TypeError: Cannot read property 'replace' of undefined
    at findPodTargetLine (/path/to/project/node_modules/react-native-pod/lib/findPodTargetLine.js:4:34)
    at getLinesToAddEntry (/path/to/project/node_modules/react-native-pod/lib/registerPod.js:24:30)
    at registerPod (/path/to/project/node_modules/react-native-pod/lib/registerPod.js:14:27)
    at Object.keys.map (/path/to/project/node_modules/react-native-pod/bin/postlink.js:32:13)

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