#<WeakSet> could not be cloned

Viewed 1130

I have a React Native application that I recently updated. However, on the majority of my modules, I have this error:

#<WeakSet> could not be cloned.

For example, on the module : @react-native-mapbox-gl When I launch my application, I get the error :

node_modules\@react-native-mapbox-gl\maps\javascript\modules\snapshot\snapshotManager.js: #<WeakSet> could not be cloned.

I also have it on my react-native-vector-icons module.

Is this a common problem?

Thank you!

2 Answers
  1. stop metro
  2. reset repo
  3. reinstall node_packages and pods
  4. run pod install --repo-update

Try deleting node_modules and reinstall with npm install or yarn install again, and then:

IOS:

  1. pod update SDWebImageWebPCoder
  2. pod install --repo-update
  3. build project in Xcode

Android:

  1. Open in Android Studio and Refresh Gradle Dependencies.
  2. build project in Android Studio
Related