This is a bug report for Stack Exchange frontend code (sstatic.net); don't close it as off-topic!
Script error: Missing polyfill for replaceAll
On older browsers, the site is broken. I can't click on any button. There is no String.prototype.replaceAll
:
There is an error on this script here:
https://cdn.sstatic.net/Js/stub.en.js?v=17e20b4b4731
Uncaught TypeError: l.replaceAll is not a function
at a (stub.en.js?v=17e20b4b4731:formatted:55)
at full.en.js?v=3708f79bf934:formatted:2365
at Object.266 (full.en.js?v=3708f79bf934:formatted:2493)
at __webpack_require__ (full.en.js?v=3708f79bf934:formatted:11524)
at a (full.en.js?v=3708f79bf934:formatted:138)
at e (full.en.js?v=3708f79bf934:formatted:11676)
at full.en.js?v=3708f79bf934:formatted:11684
at full.en.js?v=3708f79bf934:formatted:11726
at full.en.js?v=3708f79bf934:formatted:11728
babel-plugin-polyfill-corejs3@0.2.5
needs to be updated. See String.prototype.replaceAll not polyfilled #13701:
https://github.com/babel/babel/issues/13701#issuecomment-925119447
replaceAll
polyfill fixes the website. It's a simple fix. No other script errors. Works in old browsers again.