`theme-mermaid`: `tooltipElem.transition is not a function` when hovering flowchart nodes
Nessuno ha ancora preso questa issue.
- #1 di @TbhVishal — chiusa senza merge
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react, typescript
- Ambito
- frontend
Direzione di ricerca
Start by reading the @docusaurus/theme-mermaid integration and its Mermaid dependency setup; the report points to Mermaid's flowchart hover behavior and the missing transition method. Reproduce with the provided flowchart, then trace how Mermaid and D3 transitions are loaded. Done when hovering flowchart nodes produces no runtime error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
With @docusaurus/theme-mermaid, hovering nodes in a Mermaid flowchart throws:
TypeError: tooltipElem.transition is not a function
at SVGGElement.eval (webpack-internal:///./node_modules/mermaid/dist/chunks/mermaid.core/chunk-*.mjs)
at SVGGElement.eval (webpack-internal:///./node_modules/d3-selection/dist/d3-selection.mjs:777:14)
The diagram renders correctly. The diagram defines no click or tooltip directives.
Reproducible demo
No response
Steps to reproduce
-
Add the config above.
-
Add a
.mddoc containing this flowchart:```mermaid flowchart LR A[Start] --> B[Process] B --> C{Decision} C -->|Yes| D[Done] C -->|No| B `` ` // <- space to support nested code fence -
Run
yarn docusaurus clear && yarn start. -
Open the page and hover over the nodes.
[!NOTE]
I have tried both CodeSandbox and StackBlitz; both gave separate unrelated errors trying to reproduce this - please understand, I am not a Node/JS/Frontend developer, none of this is my stack.
Expected behavior
No runtime error.
Actual behavior
The dev server error overlay shows tooltipElem.transition is not a function.
Your environment
- @docusaurus/core: 3.10.2
- @docusaurus/theme-mermaid: 3.10.2
- mermaid: 12.3.0 (also reproduced with 12.2.0 and 11.17.2)
- d3: 7.9.2, d3-selection: 3.0.1, d3-transition: 3.0.2 (one installed copy of each)
- Package manager: yarn 1.22.22
- OS: macOS
- Node:
- Browser:
Self-service
- I'd be willing to fix this bug myself.
- Lingua principale
- TypeScript
- Stelle
- 66.6k
- Fork
- 10.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di facebook/docusaurus
-
Playground cards have inconsistent heightsForse già presa @anishagrawal25 l’ha presa 21 giorni fa. Apertabug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
facebook/docusaurus#12739 · 1 commento ·
-
Page title drops a trailing # from the heading, e.g. # Learn C# becomes "Learn C" (AI-assisted)Forse già presa @saiyam-jain-dev l’ha presa 9 giorni fa. Apertabug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
facebook/docusaurus#12644 · 1 commento ·
-
Firefox clips descenders in documentation sidebar labels on WindowsForse già presa @xusnitdinov l’ha presa 117 giorni fa. Apertabug status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
facebook/docusaurus#12299 ·
-
bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
facebook/docusaurus#10490 · 10 commenti · 5 reazioni ·
-
`<!-- #id -->` explicit heading ID is ignored when `markdown.mdx1Compat.comments` is enabled (AI-assisted)Forse già presa @Aryan9891 l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
facebook/docusaurus#12927 ·
Tutte le issue di facebook/docusaurus
Issue simili
-
grep and find tools search inside VCS directories (.git, .svn, .hg, .jj)Forse già presa @acmerfight l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
earendil-works/pi#12084 ·
I maintainer di solito rispondono entro 1 giorno
-
comp/desktop P3 type/feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#154285 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-reported bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nightly-labs/openbot#8154 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
jdx/mise-action#730 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cards enhancement hand-tail ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
fil-donadoni/tolaria#9275 ·
I maintainer di solito rispondono entro 1 giorno