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

bob build failed generate the codegen files #667

Closed
1 of 2 tasks
pnthach95 opened this issue Oct 26, 2024 · 2 comments
Closed
1 of 2 tasks

bob build failed generate the codegen files #667

pnthach95 opened this issue Oct 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pnthach95
Copy link

Description

I upgraded builder-bob to 0.30.3 and tried to execute prepare task but it failed

Executing task: yarn run prepare 

ℹ Building target codegen
ℹ Building target commonjs
ℹ Cleaning up previous build at lib/commonjs
ℹ Building target module
ℹ Cleaning up previous build at lib/module
ℹ Building target typescript
ℹ Cleaning up previous build at lib/typescript
ℹ Cleaning up previous iOS codegen native code at ios/generated
ℹ Cleaning up previous Android codegen native code at android/generated
ℹ Compiling 2 files in src with babel
ℹ Compiling 2 files in src with babel
ℹ Generating type definitions with tsc
✔ Wrote files to lib/commonjs
✔ Wrote files to lib/module
✖ 
/Volumes/code/Projects/awesome-library/node_modules/react-native-builder-bob/lib/targets/codegen.js:48
    throw new Error('Failed generate the codegen files.');
          ^

Error: Failed generate the codegen files.
    at build (/Volumes/code/Projects/awesome-library/node_modules/react-native-builder-bob/lib/targets/codegen.js:48:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async buildTarget (/Volumes/code/Projects/awesome-library/node_modules/react-native-builder-bob/lib/index.js:421:7)

Node.js v20.12.1

This error is same as #662 but example can build and run

Packages

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

Selected options

✔ What is the name of the npm package? … react-native-awesome-library
✔ What is the description for the package? … test rn76
✔ What is the name of package author? … Pham Ngoc Thach
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … @pnthach95
✔ What is the URL for the repository? … pnthach95/react-native-awesome-library
✔ What type of library do you want to develop? › Turbo module with backward compat
✔ Which languages do you want to use? › Kotlin & Objective-C
✔ What type of example app do you want to create? › Vanilla

Link to repro

https://github.com/pnthach95/react-native-awesome-library

Environment

OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Node:
version: 20.12.1
path: ~/.nvm/versions/node/v20.12.1/bin/node
Yarn:
version: 3.6.4
path: ~/.nvm/versions/node/v20.12.1/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v20.12.1/bin/npm

@pnthach95 pnthach95 added the bug Something isn't working label Oct 26, 2024
@atlj
Copy link
Collaborator

atlj commented Oct 26, 2024

Hey, we shipped a fix with CRNL 0.42.2 and Builder Bob 0.30.3. Could you try it? I'm closing the issue please reopen it if this didn't fix the issue

@SolankiYogesh
Copy link

still not working adding
"@react-native-community/cli": "^15.1.2"
as dev dependency works for me

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

3 participants