Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bump mermaid to 11.12.1#1374

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
antoinell wants to merge5 commits intotestingisdocumenting:master
base:master
Choose a base branch
Loading
fromantoinell:bump-mermaid

Conversation

@antoinell
Copy link
Contributor

@antoinellantoinell commentedNov 4, 2025
edited
Loading

This pull request is not ready yet, using it results in runtime errors when browsing markdown documents with mermaid blocks.
Specifically

TypeError: Importing a module script failed

on FireFox

Error rendering mermaid diagram: TypeError: error loading dynamically imported module: http://macbook-air.lan:3333/preview/static/sequenceDiagram-WL72ISMW-CFA2tOp8.js

Fixes#1373

@antoinell
Copy link
ContributorAuthor

antoinell commentedNov 5, 2025
edited
Loading

In a lot of react project on GitHub built with vite, thevite.config.ts contains some mermaid specific code.

However, as soon as I start fiddling withvite.config.ts theznai-tests module fails.

Claude 3.5 suggests this forvite.config.ts :

export default defineConfig({  optimizeDeps: {    include: ['mermaid']  },  build: {    commonjsOptions: {      include: [/mermaid/]    },    rollupOptions: {      output: {        manualChunks: {          mermaid: ['mermaid']        }      }    }  }});

@antoinell
Copy link
ContributorAuthor

antoinell commentedNov 5, 2025
edited
Loading

The errors might be related tovitejs/vite#15338

The typescript code in MerMaid.tsx is probably not the problem.

more specific errors in the console of firefox

Loading module from “http://localhost:8000/assets/sequenceDiagram-WL72ISMW-CFA2tOp8.js” was blocked because of a disallowed MIME type (“text/html”).[page-four](http://localhost:8000/your-doc-id/chapter-two/page-four/)Loading module from “http://localhost:8000/assets/chunk-TZMSLE5B-D1OQcysl.js” was blocked because of a disallowed MIME type (“text/html”).[page-four](http://localhost:8000/your-doc-id/chapter-two/page-four/)Loading failed for the module with source “http://localhost:8000/your-doc-id/static/sequenceDiagram-WL72ISMW-CFA2tOp8.js”. [page-four](http://localhost:8000/your-doc-id/chapter-two/page-four/)Error rendering mermaid diagram: TypeError: error loading dynamically imported module: http://localhost:8000/your-doc-id/static/sequenceDiagram-WL72ISMW-CFA2tOp8.js [main.js:595:564](http://localhost:8000/your-doc-id/static/main.js)Loading module from “http://localhost:8000/assets/chunk-QZHKN3VN-VLea1j1D.js” was blocked because of a disallowed MIME type (“text/html”).[page-four](http://localhost:8000/your-doc-id/chapter-two/page-four/)Loading module from “http://localhost:8000/your-doc-id/static/sequenceDiagram-WL72ISMW-CFA2tOp8.js” was blocked because of a disallowed MIME type (“text/html”).[page-four](http://localhost:8000/your-doc-id/chapter-two/page-four/)Source map error: Error: URL constructor:  is not a valid URL.Stack in the worker:resolveSourceMapURL@resource://devtools/client/shared/source-map-loader/utils/fetchSourceMap.js:56:22getOriginalURLs@resource://devtools/client/shared/source-map-loader/source-map.js:74:24workerHandler/</<@resource://devtools/client/shared/worker-utils.js:115:52workerHandler/<@resource://devtools/client/shared/worker-utils.js:113:13Resource URL: wasm:http://localhost:8000/your-doc-id/static/main.js%20line%20768%20%3E%20WebAssembly.instantiateSource Map URL: null

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Be able to use the newest version of mermaid

1 participant

@antoinell

[8]ページ先頭

©2009-2025 Movatter.jp