-
Notifications
You must be signed in to change notification settings - Fork 191
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
Yarn Prepare failure #676
Comments
Hey looks like your repository might be a bit old. We've shipped a fix with #665 since then. Could you try to create a library again with the latest version of |
@atlj the issue still exists. Updated code pushed to https://github.com/mbhaskar98/test-library. New library was created using ❯ yarn 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
✔ Wrote definition files to lib/typescript
✖
/test-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 (/test-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 (/test-library/node_modules/react-native-builder-bob/lib/index.js:425:7)
Node.js v20.11.1 "devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@evilmartians/lefthook": "^1.5.0",
"@react-native/eslint-config": "^0.73.1",
"@release-it/conventional-changelog": "^9.0.2",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.44",
"commitlint": "^17.0.2",
"del-cli": "^5.1.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"react": "18.3.1",
"react-native": "0.76.1",
"react-native-builder-bob": "^0.31.0",
"release-it": "^17.10.0",
"turbo": "^1.10.7",
"typescript": "^5.2.2"
}, |
same here |
Same problem, looks like the problem could be the outputDIr
Looks like the folder does not exist anymore |
Looks like you're missing |
Looks like #684 should also fix this. |
Sure, will try after adding the dependency. Although, the project was created using npx command so shouldn't it contain this dependency by default? |
Description
As mentioned here - facebook/react-native#47353 (comment), opening a new bug
Packages
Selected options
npx create-react-native-library@latest
Link to repro
https://github.com/mbhaskar98/test-library
Environment
The text was updated successfully, but these errors were encountered: