node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> 无法克隆

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

我正在使用“react-native-vector-icons”:“^8.1.0”,我在 node_modules/react-native-vector-icons/lib/create-icon-set.js: #<WeakSet> could not be cloned. 和 iOS 中遇到了这个错误,知道吗?

谢谢!

我尝试了不同的版本集并找到了工作版本。

...
"react-native": "0.63.0",
"react-native-vector-icons": "^6.6.0",
...

希望一切顺利。

据我所知,这与通天塔有关。 默认情况下,我们使用

"@babel/core": "7.14.0",
"@babel/runtime": "7.14.0",

这些版本。但是我们需要降级到

"@babel/core": "7.12.17",
"@babel/runtime": "7.12.18",

版本。

降级到这些版本即可解决问题。