Search code examples
buildruntimeweb-frontend

What is causing the warning 'Removing intrinsics.%ArrayPrototype%.toReversed' in React?


I am getting following warning on first load of my App.

lockdown-install.js:1 Removing intrinsics.%ArrayPrototype%.toReversed
intrinsics.%ArrayPrototype%.@@unscopables.toSpliced
intrinsics.%ArrayPrototype%.@@unscopables.toSorted

I really have no idea what this is about, so there's nothing that I have previously tried.

I went into the node_modules to try and find something related to it... been searching on the internet and even chatGPT but the information that I found is vague.


Solution

  • I randomly started getting this in my project right around the time you made this post which was odd.

    Do you have Metamask installed as a browser extension? I disabled the extension and the warnings went away.

    I found this post: https://github.com/MetaMask/eth-phishing-detect/issues/11900 Which potentially suggests that something in our projects are triggering metamasks anti-phishing feature somehow? Not quite sure, but disabling the extension removed the warnings and confirmed it wasn't something in my app directly.