Skip to content

Latest create-react-native-library@0.49.9 prompts for "local project" in a new folder, blocks CI usage of script #830

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

Closed
1 of 2 tasks
jonthysell opened this issue Apr 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jonthysell
Copy link

Description

Calling create-react-native-library now prompts "Looks like you're under a project folder. Do you want to create a local library?" I'm running in a clean directory, so the detection is not working correctly.

This is breaking the react-native-windows CI as we use create-react-native-library to confirm it's possible to create new library projects that we can then add Windows support to.

Packages

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

Selected options

npx --yes create-react-native-library@latest --slug testlib3 --description testlib3 --author-name "React-Native-Windows Bot" --author-email 53619745+rnbot@users.noreply.github.com --author-url http://example.com --repo-url http://example.com --languages kotlin-objc --type turbo-module --react-native-version 0.78.0-nightly-20250113-d4407d6f7 --example vanilla testlib3

Link to repro

microsoft/react-native-windows#14633

Environment

info Fetching system and libraries information...
System:
OS: Windows 11 10.0.26100
CPU: "(24) x64 AMD Ryzen Threadripper PRO 3945WX 12-Cores "
Memory: 45.00 GB / 63.86 GB
Binaries:
Node:
version: 18.18.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 9.8.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.35906.104 (Visual Studio Enterprise 2022)
- 17.13.35931.197 (Visual Studio Enterprise 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

@jonthysell jonthysell added the bug Something isn't working label Apr 30, 2025
@jonthysell
Copy link
Author

Workaround is to add --local false to command, we're updating our CI.

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

No branches or pull requests

1 participant