Skip to content

TypeError: Cannot read properties of undefined (reading 'replace') #233

@joegoodall1

Description

@joegoodall1
/ios/TestChange RENAMED
mv: no such file or directory: /Users/Joe/OutOfTheBoxAgain/ios/OutOfTheBoxAgain-tvOS
Ignore above error if this file doesn't exist
mv: no such file or directory: /Users/JoeOutOfTheBoxAgain/ios/OutOfTheBoxAgain-tvOSTests
Ignore above error if this file doesn't exist
/ios/TestChange.xcodeproj RENAMED
mv: no such file or directory: /Users/JoeOutOfTheBoxAgain/ios/TestChange.xcodeproj/xcshareddata/xcschemes/OutOfTheBoxAgain-tvOS.xcscheme
Ignore above error if this file doesn't exist
/ios/TestChange.xcodeproj/xcshareddata/xcschemes/TestChange.xcscheme RENAMED
/ios/TestChangeTests RENAMED
/ios/TestChangeTests/TestChangeTests.m RENAMED
/ios/TestChange.xcworkspace RENAMED
mv: no such file or directory: /Users/Joe/OutOfTheBoxAgain/ios/TestChange/OutOfTheBoxAgain.entitlements
Ignore above error if this file doesn't exist
mv: no such file or directory: /Users/Joe/OutOfTheBoxAgain/ios/OutOfTheBoxAgain-Bridging-Header.h
Ignore above error if this file doesn't exist
/android/app/src/main/res/values/strings.xml MODIFIED
/index.js MODIFIED
/ios/TestChange/Info.plist MODIFIED
/package.json MODIFIED
/app.json MODIFIED
/ios/TestChange.xcodeproj/project.pbxproj MODIFIED
/ios/TestChange.xcworkspace/contents.xcworkspacedata MODIFIED
/ios/TestChange.xcodeproj/xcshareddata/xcschemes/TestChange.xcscheme MODIFIED
/android/settings.gradle MODIFIED
/ios/TestChangeTests/TestChangeTests.m MODIFIED
/ios/Podfile MODIFIED
/app.json MODIFIED
/Users/Joe/.npm/_npx/d6cd7bd98532808c/node_modules/react-native-rename/lib/index.js:228
              var newJavaPath = javaFileBase + '/' + newBundleID.replace(/\./g, '/');
                                                                 ^

TypeError: Cannot read properties of undefined (reading 'replace')
    at /Users/Joe.npm/_npx/d6cd7bd98532808c/node_modules/react-native-rename/lib/index.js:228:66
    at new Promise (<anonymous>)
    at /Users/Joe/.npm/_npx/d6cd7bd98532808c/node_modules/react-native-rename/lib/index.js:225:20
    at Array.map (<anonymous>)
    at /Users/Joe/.npm/_npx/d6cd7bd98532808c/node_modules/react-native-rename/lib/index.js:224:38

Getting the above error on a newly created React Native project. Any idea why?

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