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

create-react-native-library fails with new versions of RN #580

Closed
1 of 2 tasks
TatianaKapos opened this issue Jul 2, 2024 · 1 comment · Fixed by #581
Closed
1 of 2 tasks

create-react-native-library fails with new versions of RN #580

TatianaKapos opened this issue Jul 2, 2024 · 1 comment · Fixed by #581
Labels
bug Something isn't working

Comments

@TatianaKapos
Copy link
Contributor

TatianaKapos commented Jul 2, 2024

Description

While using the command npx --yes create-react-native-library@latest --slug testcli --description testcli --author-name "test" --author-email [email protected] --author-url http://example.com --repo-url http://example.com --languages java-objc --type module-new --react-native-version 0.75.0-nightly-20240618-5df5ed1a8 testcli, it fails with

image

This happens with the any nightly version past 0.75.0-nightly-20240618-5df5ed1a8 and the 0.75-RCs. I think it's because RN moved their templates outside of their repository to https://www.npmjs.com/package/@react-native-community/template?

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

--description
--author-name
--author-email
--author-url
--repo-url
--languages java-objc
--type module-new
--react-native-version 0.75.0-nightly-20240618-5df5ed1a8

Link to repro

https://github.com/microsoft/react-native-windows

Environment

Can't run npx react-native info since it fails to create the library

@TatianaKapos TatianaKapos added the bug Something isn't working label Jul 2, 2024
@TatianaKapos
Copy link
Contributor Author

TatianaKapos commented Jul 2, 2024

hmmmm actually I think it might be this line https://github.com/callstack/react-native-builder-bob/blob/main/packages/create-react-native-library/src/utils/generateExampleApp.ts#L66 when @ latest needs to be switch with @RNWVersion since 0.74 and 0.75-rc1 aren't compatible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant