The Symbol.prototype.description polyfill raises TypeError in Safari 11 or any other browser that does not support Symbol.prototype.description natively.
npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/a24ee6c823/learn-starter" && cd nextjs-blog && npm install [email protected] && npm run dev)Symbol.iterator.description in the consoleTypeError: Cannot convert a symbol to a string is raised Symbol.iterator.description === 'Symbol.iterator'
/\((.+)\)/.exec(this)[1] will not work on any browser as RegExp.prototype.exec is spec'd to convert the argument to a string with the abstract operation ToString and ToString(symbol) throws a TypeError exception. See https://tc39.es/ecma262/#sec-regexp.prototype.exec and https://tc39.es/ecma262/#sec-tostring .
+1
"next": "^9.5" => "next": "9.5.3"
Thanks to Sentry we're noticing a GTM script is crashing in production in Safari v11 due to this.
I'm noticing a similar issue on my end with Next 9.5.4.
When I run Symbol.iterator.description like OP suggested, it errored on Chrome 61 - Chrome 65 (did not test 66 onwards). It was observed to be working without issues for Chrome 60, 59 and 58 (did not test versions older than this).
EDIT: Found that downgrading to Next 9.5.0 works
Could someone please send a PR fixing this?
Most helpful comment
+1
"next": "^9.5" => "next": "9.5.3"