-
Notifications
You must be signed in to change notification settings - Fork 221
Description
Description
With the release of react-native-builder-bob 0.40.0 we've started seeing build errors in our compatibility tests that use create-react-native-library 0.43.0 and react native 0.76.6: https://github.com/jhugman/uniffi-bindgen-react-native/actions/runs/14298161831/job/40068107837#step:3:1089
From what I can gather [email protected] (from last November) sets the project up to use [email protected] (from 3 days ago) which then breaks building the example app:
error [ERR_REQUIRE_ESM]: require() of ES Module /Users/jm/Code/turbo-module/node_modules/arktype/out/index.js from /Users/jm/Code/turbo-module/node_modules/react-native-builder-bob/lib/build.js not supported.
I'm not sure why the same doesn't happen with the latest version of create-react-native-library.
Packages
- create-react-native-library
- react-native-builder-bob
Selected options
We're running
./scripts/test-turbo-modules.sh \
--slug '@my-org/my-lib' \
--ubrn-config integration/fixtures/compat/ubrn.config.yaml \
--builder-bob-version 0.43.0 \
--rn-version 0.76.6 \
--packgage-json-mixin integration/fixtures/compat/package.json \
--react-native-config integration/fixtures/compat/react-native.config.js \
--ios \
../turbo-module
with this script: https://github.com/jhugman/uniffi-bindgen-react-native/blob/main/scripts/test-turbo-modules.sh
Link to repro
Environment
GitHub actions on both Linux and macOS