Repository navigation
Unable to create a libirary #609
Description
Activity
I can't repro this. What command are you running?
Hi @satya164, i can reproduce this issue.
@kadiraydinli looks like there is a regression due to the codegen specs PR. I think using a vanilla example app instead of the test app should work for you until we fix the issue
@kadiraydinli looks like there is a regression due to the codegen specs PR. I think using a vanilla example app instead of the test app should work for you until we fix the issue
no tried with Vanilla app but same issue
Reacted by Burak Güner+1 on this issue. Generates well for "Native Modules", error on New Arch
Reacted by Burak GünerThe issue happened for generating TurboModule new arch also in node 18 mac m1.
Reacted by Burak GünerHey folks, we've landed 2 more fixes, could you try
npx create-react-native-library@latestand create a new project again?Same issue, generating "Native View" on Intel i7, running Node v20.15.1
This issue is still happening using
Fabic ViewNo update on this library? is it being mantained or it is dead? until version
0.43.0it was working fine... then stopped workingI know that nobody is looking at this Issue at all, but to give some insights... I just cloned the entire repository and run it locally
yarn watchand thenpackages/create-react-native-library/bin/create-react-native-libraryand this worked as expected (I did not tested the end result but at least no more error)This issue is still happening, I need using legacy native module with version 0.49.8, It seem`s not working fine!
Yeah, the binary works with node 20 & node 22
node node_modules/create-react-native-library/bin/create-react-native-library my-library👌Maybe npx combo breaks the executable ? i'm using macOs

Description
(Use
node --trace-deprecation ...to show where the warning was created)✔ What is the name of the npm package? … react-native-test
✔ What is the description for the package? … hi
✔ What is the name of package author? … CodeSyncr
✔ What is the email address for the package author? … yashkumar12125@gmail.com
✔ What is the URL for the package author? … https://github.com/CodeSyncr
✔ What is the URL for the repository? … https://github.com/CodeSyncr/react-native-test
✔ What type of library do you want to develop? › Native module
✔ Which languages do you want to use? › Kotlin & Swift
✔ What type of example app do you want to create? › Vanilla
⠹ Generating example app
ENOENT: no such file or directory, open '/Users/yashkumar/Documents/Projects/react-native-test/example/package.json'
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open '/Users/yashkumar/Documents/Projects/react-native-test/example/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/yashkumar/Documents/Projects/react-native-test/example/package.json'
}
Node.js v22.3.0
Also to Mention library folder is completely empty
Packages
Selected options
Native module
Kotlin & Swift
Vanilla
Link to repro
https://github.com/callstack/react-native-builder-bob
Environment
MAC OS - 14.5 (23F79)
Node - 22.3.0