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

erDiagram not showing attributes for entities #78

Open
squirrelslair opened this issue Nov 16, 2021 · 1 comment
Open

erDiagram not showing attributes for entities #78

squirrelslair opened this issue Nov 16, 2021 · 1 comment
Labels

Comments

@squirrelslair
Copy link

Setup and configuration

  • Mermaid version:3.0.1
  • MediaWiki version:1.36.2
  • PHP version:7.4.20 (cgi-fcgi)
  • Database system (MySQL, PostgresQL, etc.) and version:MySQL 5.7.29-log

Issue

Using the car-driver sample code in https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram I get the car and driver entity boxes, but the attribute portion of the entities is not there.
Here is the code used:

An example is at
https://wiki.squirrelslair.ca/index.php?title=Mediawiki_Extension_Mermaid
It gives a console error Source map error: Error: request failed with status 404 Resource URL: https://wiki.squirrelslair.ca/load.php?lang=en&modules=ext.bootstrap.scripts%7Cext.mermaid%7Cjquery%2Csite%7Cjquery.client%7Cmediawiki.String%2CTitle%2Capi%2Cbase%2Ccldr%2CjqueryMsg%2Clanguage%2Cutil%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cuser.defaults&skin=chameleon&version=jiis4 Source Map URL: mermaid.min.js.map

The same example is at
https://sandbox.semantic-mediawiki.org/wiki/Utilisateur:Tenbergen/mermaid_ER_Diagram_attributes_not_shown
It gives a slightly different error: Source map error: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data Resource URL: https://sandbox.semantic-mediawiki.org/w/load.php?lang=en&modules=ext.echo.api%2Cinit%7Cext.mermaid%7Cext.scite.tooltip%7Cext.summary.cards%7Cext.summary.cards.tooltip%7Cext.uls.interface%2Cpreferences%2Cwebfonts%7Cjquery%2Coojs%2Csite%7Cjquery.client%2Ccookie%2CtextSelection%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Cnotification%2Cstorage%2Cuser%2Cutil%2CvisibleTimeout%7Cmediawiki.ForeignApi.core%7Cmediawiki.action.view.postEdit%7Cmediawiki.api.parse%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.page.watch.ajax%7Conoi.blobstore%2ClocalForage%2Cmd5%2Cqtip%2Cutil%7Conoi.qtip.extended%7Cskins.monobook.mobile%7Cskins.monobook.mobile.echohack%2Culs%7Cuser.defaults&skin=monobook&version=1x5xq Source Map URL: mermaid.min.js.map
The example in the sandbox also doesn't show the diagram after saving unless I refresh the page.

@kghbln kghbln added the bug label Nov 17, 2021
@kghbln
Copy link
Member

kghbln commented Nov 17, 2021

Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants