Using these versions I get the error above:
"@contentful/rich-text-html-renderer": "^16.6.10",
"@contentful/rich-text-types": "^16.8.5",
The error only occurs on production and disappears when optimisation is disabled. I think there is some kind of problem with tree shaking?
Thanks in advance for any hints!