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
With the release of Mermaid v10 on February 21, 2023, a change has been made to the mermaid.render function where it no longer accepts callbacks and only supports async operations. changelog
Due to this change, an issue has arisen where JavaScript in the HTML document created via the uftrace dump --mermaid command fails to function as expected. The error message provided is shown below:
mermaid.min.js:6 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createElementNS')
at Function.<anonymous> (mermaid.min.js:6:16723)
...
at mermaid.min.js:87:669
at new Promise (<anonymous>)
at Object.UOt [as render] (mermaid.min.js:87:479)
at renderGraph (a.html:270:10)
at drawBaseGraph (a.html:246:2)
at HTMLButtonElement.onclick (a.html:40:61)
We can solve the problem by simply modifying the source code to use v9, but it seems necessary to rewrite the entire source code to ESM for maintenance.
The text was updated successfully, but these errors were encountered:
mirusu400
added a commit
to mirusu400/uftrace
that referenced
this issue
Aug 2, 2023
After Mermaid v10, the function 'mermaid.render'
does not support callback, but only supports async operation.
This commit fixed the Mermaid to work by temporarily
specifying the version of Mermaid as v9.
Ref: namhyung#1793
Signed-off-by: Seong Jin Kim <mirusu400@naver.com>
After Mermaid v10, the function 'mermaid.render'
does not support callback, but only supports async operation.
Due to this change, an issue has arisen where JavaScript in
the HTML document created via the 'uftrace dump --mermaid'
command fails to function as expected.
This commit fixed the Mermaid to work by temporarily
specifying the version of Mermaid as v9.
Fixed: namhyung#1793
Signed-off-by: Seong Jin Kim <mirusu400@naver.com>
With the release of Mermaid v10 on February 21, 2023, a change has been made to the
mermaid.render
function where it no longer accepts callbacks and only supports async operations. changelogDue to this change, an issue has arisen where JavaScript in the HTML document created via the
uftrace dump --mermaid
command fails to function as expected. The error message provided is shown below:We can solve the problem by simply modifying the source code to use v9, but it seems necessary to rewrite the entire source code to ESM for maintenance.
The text was updated successfully, but these errors were encountered: