Skip to content

fix(react-native-example): patch metro with compatible react-native-community version - #310

Open
thomas-pearson-mattr wants to merge 2 commits into
masterfrom
tp/update-rn-example
Open

fix(react-native-example): patch metro with compatible react-native-community version#310
thomas-pearson-mattr wants to merge 2 commits into
masterfrom
tp/update-rn-example

Conversation

@thomas-pearson-mattr

@thomas-pearson-mattr thomas-pearson-mattr commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Patches incompatible versions @react-native-community/cli@17.0.1 was added alongside the RN 0.76.9 upgrade, but versions are incompatible. This causes a crash when starting up metro dev server.

From earlier in the session:
TypeError: Cannot read properties of undefined (reading 'handle')
    at Function.use (/Users/thomas.pearson/code/mattr/pairing_crypto/wrappers/react-native/example/node_modules/connect/index.js:87:21)
    at exports.runServer (/Users/thomas.pearson/code/mattr/pairing_crypto/wrappers/react-native/example/node_modules/metro/src/index.flow.js:146:15)

Fix
Downgrade to cli@15.1.3 the correct version for RN 0.74 - 0.78 per the official RN templates. cli@16 and 17 were never paired with any stable RN release.

This follows the recommended versions and major version is used in the react-native upgrade helper template.

Example wasn't running from a previous update due to a version
incompatibility.
@thomas-pearson-mattr
thomas-pearson-mattr marked this pull request as ready for review June 3, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant