Sentry throwing TypeError _forceLCP(src/integrations/tracing)

The following error is thrown from the sentry script: src/integrations/tracing.ts

TypeError _forceLCP(src/integrations/tracing)

errore.takeRecords is not a function. (In ‘e.takeRecords()’, ‘e.takeRecords’ is undefined)

It’s mainly happening on safari and started happening from Aug 20. How should we handle this? Also, is this fixed in any newer version of sentry (currently I am on 5.20.1)

UPDATE: Sentry has fixed this with version 5.21.2. For more details, see: Release 5.21.2 · getsentry/sentry-javascript · GitHub