question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned.

See original GitHub issue
error node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned.
Error: #<WeakSet> could not be cloned.
    at Object.serialize (node:v8:260:7)
    at _default (node_modules/@babel/core/lib/transformation/util/clone-deep.js:16:30)
    at normalizeFile (node_modules/@babel/core/lib/transformation/normalize-file.js:52:36)
    at normalizeFile.next (<anonymous>)
    at run node_modules/@babel/core/lib/transformation/index.js:31:50)
    at run.next (<anonymous>)
    at /node_modules/@babel/core/lib/transform-ast.js:20:41
    at Generator.next (<anonymous>)
    at evaluateSync (/node_modules/gensync/index.js:251:28)

using “react-native”: “0.64.0”, and “react-native-vector-icons”: “^8.1.0”

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:15
  • Comments:38 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
tylerssncommented, Jun 16, 2021

For those of you dealing with hours of debugging @babel/core being installed at multiple versions, here’s the savior—add this to your package.json

  "resolutions": {
    "@babel/core": "7.12.*",
    "@babel/runtime": "7.12.*"
  },
16reactions
TheRusskiycommented, Nov 24, 2021

Removing yarn.lock is a nuclear solution, thankfully there’s a better way. Go to yarn.lock, see where "@babel/*** start and delete all of them, dependencies are in alphabetical order, so it’s easy selecting them. The next time you do yarn install it’s going to re-generate only babel dependencies which should solve this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node_modules/react-native-vector-icons/lib/create-icon-set.js
0", and I got this error node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned. with iOS, any idea?
Read more >
node_modules/react-native-vector-icons/lib/create-icon-set.js
[Solved]-node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned-React Native. Search. score:1. Accepted answer.
Read more >
React Native Version upgrade nightmare : r/reactnative - Reddit
#<WeakSet> could not be cloned. This error point to a file only have these libs imported. import * as RNLocalize from 'react-native-localize';
Read more >
react-native-vector-icons - Bountysource
error node_modules /react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned. Error: #<WeakSet> could not be cloned. at ...
Read more >
Active questions tagged react-native+ios - Stack Overflow
I'm using "react-native-vector-icons": "^8.1.0", and I got this error node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found