Skip to content

[Bug] pnpm dev fails on Windows with electron-vite SSR build error (v1.8.0) #13519

@Duongan174

Description

@Duongan174

Bug Description

Running pnpm dev on a fresh clone of Cherry Studio v1.8.0 on Windows fails during the electron-vite SSR build step.

Environment

  • OS: Windows 11
  • Node.js: v25.2.1
  • pnpm: 10.27.0
  • Visual Studio Build Tools: 2022 (with C++ workload)

Steps to Reproduce

  1. git clone https://github.com/CherryHQ/cherry-studio.git
  2. pnpm install ✅ (succeeds)
  3. pnpm dev ❌ (fails)

Error Output

CherryStudio@1.8.0 dev electron-vite devout/preload/index.js 57.23 kB │ map: 88.27 kB rolldown-vite v7.3.0 building ssr environment for development... [EVAL] Warning: Use of direct eval ELIFECYCLE Command failed with exit code 1.

Notes

  • pnpm install succeeds with 0 vulnerabilities
  • TypeScript typecheck passes with 0 errors
  • Preload build succeeds
  • Failure occurs during renderer SSR build with rolldown-vite v7.3.0

Expected Behavior

pnpm dev should start the development server and open the Electron window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reproneeds to reproduce the bug to figure out

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions