-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.21.0] Mermaid on Wiki no longer working #28170
Comments
I can not reproduce this on my 1.21 instance. What browser are you using and did you try others? Got a full error stack trace and ideally a screenshot of devtools where the error occured in the minified JS? |
Hi @silverwind and @wxiaoguang, Give this diagram a try:
Maybe it is a Docker image related issue. DevTools doesn't give any hint since there's no JS error in the console (neither 404s): AFAIK it's a managed exception. TIA, |
OK, reproduced by your sample. It's really strange. share my findings:
|
I can reproduce, not just on wiki with this mermaid source:
Likely a bug in mermaid itself and we should upgrade the dependency. |
I guess we need to upgrade mermaid in v1.21 branch. v1.21 uses mermaid v10.5.0, while main branch has v10.6.1. |
Could you reproduce on 1.21 branch (which uses mermaid 10.5.0)? I can't on my side ..... I can only reproduce it by the docker images. |
It reproduces with my from-source compiled 1.21.0+8-gf8c5f202b non-docker instance, have not tried locally yet. |
Thanks for your repros! I'm actually new to gitea/web_src/js/markup/mermaid.js Line 71 in 37ed92d
HTH, |
Hello Everyone, Will this issue be just "automagically" resolved using TIA, |
I can't reproduce it on my side, so I don't know whether "updating the mermaid version" is the right approach. Anyway, I can propose a PR without any test/guarantee ( Update mermaid for 1.21 #28571 ) Feel free to build your own binary to test whether it really works. |
Hi @wxiaoguang,
OK Matteo |
The 1.21 nightly builds are ready. |
Feel free to reopen if there is still any problem. |
Hi @wxiaoguang, Thanks for 1fc6bc1! Matteo |
Description
Hello Everyone,
just updated from
1.20.5
to1.21.0
and themermaid
git diagram on a Wiki page breaks with the following errorQa(...).catch is not a function
and nothing in JS console, just the plain source text of the diagram below the error.Same error if starting from a fresh
1.21.0
installation.The error cannot be reproduced on the Gitea demo site,
1.22.0+dev-350-g2d9b91aa2
.https://blog.gitea.com/release-of-1.21.0/ doesn't provide any hint/advice about Mermaid diagrams.
Thanks in advance,
Matteo
Gitea Version
1.21.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Docker Rootless Image
How are you running Gitea?
Using the Docker rootless image,
docker.io/gitea/gitea:1.21.0-rootless
, by means of a quite standard compose.Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: