You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is happening?
When looking at a mermaid diagram (rendered through a code snippet of language mermaid) I see the mermaid code, but when its rendering the image, it give a javascript error Unknown Error: TypeError: Object.hasOwn is not a function.
What is happening?
When looking at a mermaid diagram (rendered through a code snippet of language mermaid) I see the mermaid code, but when its rendering the image, it give a javascript error
Unknown Error: TypeError: Object.hasOwn is not a function.
Checking the error, it looks like Object.hasOwn is only supported since nodejs 16.9, but looking in this repo, notion-repackaged seems to use nodejs 14.17.1. This would explain the issue.
If upgrading nodejs isn't an option, there also seems to be a polyfill for it that could maybe solve it? https://github.com/es-shims/Object.hasOwn
What should be happening?
The mermaid diagram should be rendered.
Screenshots (if applicable):
Issue in notion-repackaged:
Its fine in the browser:
Operating system/browser name & version:
Fedora Linux 38
notion-enhancer and/or notion-repackaged version:
notion-app-2.0.18-1.x86_64
notion-enhancer configuration (enabled/disabled mods and their settings):
The text was updated successfully, but these errors were encountered: