waiting for locator('body').locator('#mermaid-rendering-container')
at go (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:198:25)
at async genPagePdfOnePiece (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:278:5)
at async exportSlides (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:383:5)
at async Object.handler (/home/alex/notes/slides/node_modules/@slidev/cli/dist/cli.mjs:422:22)
**Desktop (please complete the following information):**
- OS: gentoo
- Browser: firefox
- Slidev version: 0.48.9
I've updated all dependencies. Any help appreciated, thanks !
Describe the bug Export to PDF fails for mermaid figures.
To Reproduce Steps to reproduce the behavior:
test.md
Test
```mermaid {theme: 'neutral', scale: 0.8} graph TD B[Text] --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2] ```
●■▲ Slidev v0.48.9
theme @slidev/theme-default css engine unocss entry /home/alex/notes/slides/test.md ● rendering...locator.evaluate: Error: strict mode violation: locator('body').locator('#mermaid-rendering-container 1)
aka locator('#mermaid-rendering-container').first() 2) aka locator('#mermaid-rendering-container').nth(1) 3) aka locator('#mermaid-rendering-container').nth(2) 4) aka locator('#mermaid-rendering-container').nth(3)Call log:
waiting for locator('body').locator('#mermaid-rendering-container')
at go (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:198:25) at async genPagePdfOnePiece (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:278:5) at async exportSlides (/home/alex/notes/slides/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:383:5) at async Object.handler (/home/alex/notes/slides/node_modules/@slidev/cli/dist/cli.mjs:422:22)