react-native-screens: [3.31.0] CI builds fails, command not found: bob

Description

After running yarn install on CI on a macos 14 machine the install fails with:

react-native-screens@npm:3.31.0 [e76ba] couldn't be built successfully (exit code 127, logs can be found here: /private/var/folders/cm/2r_39vcd593436b3_ht4nyqw0000gp/T/xfs-1e614b9e/build.log)

the log states:

command not found: bob

Steps to reproduce

  1. I’m using yarn 4.1.1
  2. use latest version of react-native-screens 3.31.0
  3. yarn install fails

Snack or a link to a repository

no-repo-needed

Screens version

3.31.0

React Native version

0.73.7

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Release mode

Device

Real device

Device model

No response

Acknowledgements

Yes

About this issue

  • Original URL
  • State: closed
  • Created 2 months ago
  • Reactions: 7
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Hello everyone! We’re currently aware of this issue with @kkafar. It was mistake on our side, since we’ve bumped Yarn to v4 version and didn’t realize that it triggers postinstall step 😄 Sorry, we’ll be releasing a patch version in upcoming hour.

I solved problem with changing version for now. I think this version is working when build

3.31.0-rc.1

npm i react-native-screens@3.31.0-rc.1 or yarn add react-native-screens@3.31.0-rc.1

I haven’t encountered any problems during runtime yet.

@tboba Released 3.31.1. Let us know, whether the issue disappeared

The issue is solved in 3.31.1

@efstathiosntonas

npm ERR! command sh -c bob build && husky install
npm ERR! ℹ Building target commonjs
npm ERR! ℹ Cleaning up previous build at lib/commonjs
npm ERR! ℹ Compiling 61 files in src with babel
npm ERR! ✔ Wrote files to lib/commonjs
npm ERR! ℹ Building target module
npm ERR! ℹ Cleaning up previous build at lib/module
npm ERR! ℹ Compiling 61 files in src with babel
npm ERR! ✔ Wrote files to lib/module
npm ERR! ℹ Building target typescript
npm ERR! ℹ Cleaning up previous build at lib/typescript
npm ERR! ℹ Generating type definitions with tsc
npm ERR! ✖ Couldn't find a tsconfig.json in the project root.
npm ERR! bob build

Command failed. Exit code: 127 Command: bob build && husky install Arguments: Directory: /Users/******/node_modules/react-native-screens Output: /bin/sh: bob: command not found