This is potentially caused by the reactComponentAnnotation
option of the Sentry SDK in your next.config.js
. It appends properties to components and if the properties are iterated either by a library or your own code it may sometimes lead to errors.