Skip to content

fix(frontend): make dev:web cross-platform using cross-env#2995

Open
ronishrohan wants to merge 1 commit into
AgentWrapper:mainfrom
ronishrohan:fix/2981-cross-platform-dev-web
Open

fix(frontend): make dev:web cross-platform using cross-env#2995
ronishrohan wants to merge 1 commit into
AgentWrapper:mainfrom
ronishrohan:fix/2981-cross-platform-dev-web

Conversation

@ronishrohan

Copy link
Copy Markdown

Summary

npm run dev:web uses inline Unix env assignment (VITE_NO_ELECTRON=1 vite ...), which fails on Windows (PowerShell/cmd). This blocks Windows contributors from running the web preview.

Changes

  • Added cross-env as a dev dependency (^10.1.0)
  • Updated dev:web script to prefix with cross-env:
    "dev:web": "cross-env VITE_NO_ELECTRON=1 vite --config vite.renderer.config.ts"

cross-env is the standard solution for this — it normalises env var setting across shells with no behaviour change on macOS/Linux.

Verification

  • npm run typecheck
  • cross-env is a zero-dependency, widely-used package (hundreds of millions of weekly downloads)

Closes #2981

VITE_NO_ELECTRON=1 fails on Windows (PowerShell/cmd) because inline
env var assignment is a Unix-only shell feature. Prefix the command
with cross-env so the variable is set portably on all platforms.

Closes AgentWrapper#2981
@somewherelostt

Copy link
Copy Markdown
Collaborator

Thanks for contributing to Agent Orchestrator.

This PR is being picked up by the current external contributor on-call pair:

If someone is already working on this, please continue as usual.
The on-call pair is added for visibility, tracking, and support, not to take over the work.
If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @Pulkit7070 here.

For faster context or live questions, you can also join the AO Discord.

Join the session here:
https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: frontend dev:web script fails on Windows due to Unix-style env assignment

5 participants