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

Unable to create a libirary #609

Open
1 of 2 tasks
CodeSyncr opened this issue Aug 2, 2024 · 8 comments
Open
1 of 2 tasks

Unable to create a libirary #609

CodeSyncr opened this issue Aug 2, 2024 · 8 comments
Assignees
Labels
bug Something isn't working needs-response

Comments

@CodeSyncr
Copy link

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? … [email protected]
✔ 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

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

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

@CodeSyncr CodeSyncr added the bug Something isn't working label Aug 2, 2024
@satya164
Copy link
Member

satya164 commented Aug 2, 2024

I can't repro this. What command are you running?

@kadiraydinli
Copy link
Contributor

Hi @satya164, i can reproduce this issue.

image

@atlj
Copy link
Collaborator

atlj commented Aug 21, 2024

@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

@atlj atlj reopened this Aug 21, 2024
@CodeSyncr
Copy link
Author

@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

@gitstashapply
Copy link

+1 on this issue. Generates well for "Native Modules", error on New Arch

@yongweilai
Copy link

yongweilai commented Sep 1, 2024

The issue happened for generating TurboModule new arch also in node 18 mac m1.

@atlj atlj self-assigned this Sep 13, 2024
@atlj
Copy link
Collaborator

atlj commented Sep 15, 2024

Hey folks, we've landed 2 more fixes, could you try npx create-react-native-library@latest and create a new project again?

@akpekig
Copy link

akpekig commented Nov 30, 2024

Same issue, generating "Native View" on Intel i7, running Node v20.15.1

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

No branches or pull requests

7 participants