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

vite build failure for 10.9.0 #5362

Open
jesse23 opened this issue Mar 6, 2024 · 2 comments
Open

vite build failure for 10.9.0 #5362

jesse23 opened this issue Mar 6, 2024 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@jesse23
Copy link

jesse23 commented Mar 6, 2024

Description

Vite build fails with vite-react-swc in 10.9.0

Steps to reproduce

  1. Mermaid Impl: https://github.com/jesse23/copilot/blob/mermaid_109_issue/apps/ui/src/components/MermaidDiagram.tsx
  2. Build config: https://github.com/jesse23/copilot/blob/mermaid_109_issue/apps/ui/vite.config.ts
    Result: npm run dev pass. npm run build & npm run preview will have error in browser as
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'prototype')
    at kS (index-a6050d12.js:564:23131)
    at index-a6050d12.js:564:26435
    at index-a6050d12.js:1608:2692

9.4 seems to be fine (yeah the API is slightly different with renderAsync

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 10.9
  • Browser and Version: Chrome

Suggested Solutions

No response

Additional Context

No response

@jesse23 jesse23 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Mar 6, 2024
@sidharthv96
Copy link
Member

Can you try v10.8.0 (to see if it's a issue with v10.9.0, or a difference between v9 and v10)?

And please provide a minimum reproduction, instead of a complete project.

@jesse23
Copy link
Author

jesse23 commented Mar 9, 2024

Yeah I'll try to update before Monday. Thx!

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

2 participants