Closed
Description
Describe the bug
Since the Ripple CI / Bit Cloud build process has started using Bit version 1.6.73
I've been seeing build failures on my React 18 environment (see Ripple CI logs here), which is based on @teambit/[email protected]
:
- the error occurs even if I don't update my components - just running
bit tag --unmodified
and exporting the results throws a build error for me on the latest Bit version - the
bit build
process still succeeds when I running it locally with any Bit version
Screenshots, exceptions and logs - error details from Ripple CI
The full build logs and all errors are visible here (the env is in a public scope): https://bit.cloud/sitestudio/envs/~ripple-ci/job/sitestudio-sitestudio-envs-rebuilding-scope/component/sitestudio.envs/[email protected]
The main part of the error message says:
PnpmError: [email protected] install:
prebuild-install || node-gyp rebuild --release
Exit status 1
Steps to Reproduce
- You can see an example when comparing the last 2 versions of the
tina-react-env
here: https://bit.cloud/sitestudio/envs/tina-react-env/~compare- There are no code differences between the 2 versions
- Version 0.0.2 built perfectly 1 month ago, while version 0.0.3 is failing to build
- You can import that
tina-react-env
and it will build fine locally- run
bit tag --unmodified
andbit export
and the Ripple CI throws the error detailed above
- run
Expected Behavior
- New Bit versions should not lead to build failures on Ripple CI / Bit Cloud for components that were previously building successfully.
- Or if there are errors on Ripple CI it should ideally be possible to recreate those same errors when running
bit build
locally
- Or if there are errors on Ripple CI it should ideally be possible to recreate those same errors when running
- Alternatively a way to specify the Bit version that Ripple CI uses would provide an immediate resolution: Can we specify a Bit version to be used by Ripple CI / Bit Cloud? #8627
Specifications
- Bit version: 1.6.73
- Workspace type: harmony
- Node version: 21.2.0
- pnpm version: 7.4.0
- Platform: Bit Cloud / Ripple CI
- Relevant env: The
tina-react-env
is based on the React 18 env:@teambit/[email protected]
. It only has very minor customizations