I’m trying to make small changes to react-native-webrtc that’s used in jitsi-meet. I have a copy of the sources locally, and made this change to package.json:
- "react-native-webrtc": "github:jitsi/react-native-webrtc#52fe4646401408e0569e972cabf08f3c21b7a107", + "react-native-webrtc": "file:///home/guus/github/react-native-webrtc",
Afterwards, I run
npm install && make
When I then try to build the SDK artifacts in the
android directory, by invoking
./gradlew :sdk:assembleRelease, the follower error is returned:
Task :sdk:bundleReleaseJsAndAssets Scanning folders for symlinks in /home/guus/github/jitsi-meet/node_modules (8ms) Scanning folders for symlinks in /home/guus/github/jitsi-meet/node_modules (12ms) Loading dependency graph, done. warning: the transform cache was reset. Unable to resolve module `react-native-webrtc` from `/home/guus/github/jitsi-meet/node_modules/react-native-callstats/csio-polyfill.js`: Module does not exist in the module map This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3. Reset Metro Bundler cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.
I’ve tried the suggested fix, but that didn’t help. What am I missing?