Skip to content

Conversation

@SouriRishik
Copy link

Summary

This PR updates the README with clearer setup instructions for Windows users who encounter the LightningCSS error during npm run dev.
It also includes small package.json adjustments from a fresh install on Windows.

Changes

  • Added troubleshooting note for disabling LightningCSS in next.config.js.
  • Clarified .env.local setup steps.
  • Regenerated package-lock.json and updated package.json after a clean install.

Why

On Windows, the lightningcss.win32-x64-msvc.node module can cause startup failures. This change documents the fix and ensures cross-platform setup works smoothly.

Testing

  • Verified on Windows 11, Node.js v22.17.0
  • App now starts successfully with npm run dev

xticriss and others added 7 commits September 15, 2025 16:01
Problem:
- ZIP download was failing with 'No active sandbox' error even when sandbox was active
- Root cause: Mismatch between V1 (global.activeSandbox) and V2 (global.activeSandboxProvider) architectures
- E2B provider's command splitting broke complex bash commands
- Different working directories: E2B uses /home/user/app, Vercel uses /vercel/sandbox

Solution:
- Detect which sandbox provider is active (E2B, Vercel, or V1 legacy)
- E2B: Use Python zipfile module directly to avoid command parsing issues
- Vercel: Use correct /vercel/sandbox working directory
- Maintain backward compatibility with V1 sandboxes

Changes:
- Provider-aware ZIP creation logic
- Python-based implementation for E2B to avoid bash command splitting
- Correct path handling for each provider type
- Proper output format handling for different providers

Testing:
- Works with E2B provider using Python zipfile
- Works with Vercel provider using correct paths
- Maintains V1 sandbox compatibility
- ESLint passes with no errors
…ox-provider

Fix: ZIP download fails with 'No active sandbox' error for E2B provider
Updated README to include additional demo images.
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.

4 participants