Skip to content
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

Architecture diagrams produce console warnings - "Do not assign mappings to elements without corresponding data" #6031

Open
slorber opened this issue Nov 7, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@slorber
Copy link

slorber commented Nov 7, 2024

Description

Rendering architecture diagrams shouldn't produce console warnings

Steps to reproduce

Go to https://mermaid.js.org/syntax/architecture.html and open the console in Chrome 130:

Many warnings printed like this one:

Do not assign mappings to elements without corresponding data (i.e. ele `db-server` has no mapping for property `label` with data field `label`); try a `[label]` selector to limit scope to elements with `label` defined

Screenshots

CleanShot 2024-11-07 at 12 33 09

Code Sample

No response

Setup

  • Mermaid version: latest / site version
  • Browser and Version: Chrome 130

Suggested Solutions

Fix console warning

Additional Context

I noticed the issue because Docusaurus has Argos visual regression tests and I also validate with Playwright that there's no console warnings/errors.

Our latest blog post using an architecture diagram produces such warning: https://docusaurus.io/blog/releases/3.6#mermaid

https://github.com/facebook/docusaurus/actions/runs/11721835347/job/32650127936

@slorber slorber added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant