Skip to content

Invalid regular expression: Quantifier has nothing to repeat #955

@dimaportenko

Description

@dimaportenko

Describe the bug

When I'm making ios production build I'm getting following error

▸ Running script 'Bundle React Native code and images'
    the transform cache was reset.

❌  /Users/dmytro/Library/Developer/Xcode/DerivedData/MyApp-frkpgjecadzmdafacduzaolbaukr/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/BuildProductsPath/Release-iphoneos/main.jsbundle:71967:25: Invalid regular expression: Quantifier has nothing to repeat

          var matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
          

which is points to the testing-library, see attached screenshot

Screenshots

CleanShot 2022-04-13 at 19 17 31@2x

Versions

npmPackages:
    @testing-library/react-native: 9.1.0 => 9.1.0 
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.3 => 0.67.3 
    react-test-renderer: 17.0.2 => 17.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions