Skip to content

8.0.0-beta.2 import mermaid from 'mermaid' error #561

@zhl1232

Description

@zhl1232

Describe the bug

Uncaught TypeError: require_dist is not a function
at chunk-S3R3BYOJ-gH0En3Jn.js?v=6da93fe3:902:19

Reproduction

https://stackblitz.com/edit/vitejs-vite-up8d61et?file=src%2Fmain.js,package.json,index.html,vite.config.ts,src%2FMermaidView.vue&terminal=dev

Steps to reproduce

No response

System Info

//#region node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.mjs
var import_dist = require_dist();

Uncaught TypeError: require_dist is not a function
    at chunk-S3R3BYOJ-gH0En3Jn.js?v=6da93fe3:902:19

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Labels

bug: upstreamBug in a dependency of Vite

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions