react-native-webrtc: Expo 51 event-target-shim/package.json Package subpath './index' is not defined

Expected Behavior:

Running fresh Expo dev client I have followed the guide and edit metro.config.js

Observed Behavior:


Android Bundling failed 3615ms node_modules/expo/AppEntry.js (668 modules)
error: Error: Package subpath './index' is not defined by "exports" in /Users/user/imyproject/node_modules/react-native-webrtc/node_modules/event-target-shim/package.json

Steps to reproduce the issue:

  1. create expo dev client project
  2. install react-native-webrtc
  3. edit metro.config.js
  4. call registerGlobals

Platform Information

  • React Native Version: 0.74.1
  • WebRTC Module Version: 118.0.7
  • Platform OS + Version: Android + Expo 51
  • "@config-plugins/react-native-webrtc": "^9.0.0",

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Did you find a solution?

Yes, just ignore metro.config.js

Shall we close this then?

yes