You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the library is directly referenced (instead of a dependency), the load fails. Is this the expected behaviour? If so, the docs could mention that.
mermaid:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
git clone [email protected]:akil-rails/vitepress-starter.git
cd vitepress-starter
pnpm i
pnpm run docs:build
pnpm run docs:serve
Open the URL in chrome
In chrome developer tools/console, you'll see the message
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
The text was updated successfully, but these errors were encountered:
Discussed in #1041
Originally posted by akil-rails July 22, 2022
The guide explains:
When the library is directly referenced (instead of a dependency), the load fails. Is this the expected behaviour? If so, the docs could mention that.
mermaid:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
Steps to reproduce
The text was updated successfully, but these errors were encountered: