Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was able to get this working but with one additional step #2

Open
nickwelp opened this issue Jul 20, 2021 · 0 comments
Open

I was able to get this working but with one additional step #2

nickwelp opened this issue Jul 20, 2021 · 0 comments

Comments

@nickwelp
Copy link

After following the steps in the guide, I had this error:
`/MyApp/node_modules/react-native-codegen/lib/parsers/flow/index.js:220
const regex = new RegExp(TURBO_MODULE_REGISTRY_REQUIRE_REGEX_STRING, 'g');
^

SyntaxError: Invalid regular expression: /TurboModuleRegistry\s*.\sget(Enforcing)?\s<\sSpec\s>\s*(\s*'"['"]\s*,?\s*)/: Invalid group
Command PhaseScriptExecution failed with a nonzero exit code`

I found a solution, by following this advice facebook/react-native#31180

I added
"resolutions": { "react-native-codegen": "^0.0.7" },
to my package.json, deleted package-lock.json, rm -rf ./node_modules/react-native-codegen, then used yarn to install, which honors resolutions, installing only versions of packages as specified. This got around an issue react-native-codegen 0.0.6 has, which is imported by some other libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant