Skip to main content

Build Issues

Clean Build

If you encounter unexpected build errors, try a clean build:
1

Remove Build Artifacts

This removes:
  • node_modules/ directory
  • app/node_modules/ directory
  • out/ build output directory
2

Reinstall Dependencies

Dependencies are automatically reinstalled after running clean-slate.
3

Rebuild the Application

Hard Rebuild

Use the combined rebuild commands:
Hard rebuilds remove all dependencies and build artifacts. This may take several minutes.

Node.js and npm Issues

Version Compatibility

Ensure you’re using compatible versions:
If versions are incompatible:

Yarn Installation

If Yarn is not installed:

Windows-Specific Issues

node-keytar Build Failures

If keytar fails to build during npm install:
Solution: Update npm to the latest version:
Then retry installation:

Build Tools Missing

Windows builds require Visual Studio Build Tools:
1

Install Build Tools

2

Select Components

During installation, select:
  • Desktop development with C++
  • Windows 10 SDK
3

Retry Build

Python Not Found

Node-gyp requires Python 3.9+:
  1. Install Python from python.org
  2. Add Python to PATH during installation
  3. Verify installation:

macOS-Specific Issues

Xcode Command Line Tools

If compilation fails on macOS:
Accept the license agreement:

macOS Version Validation

Validate your macOS version is supported:

Electron Issues

Electron Version Mismatch

Validate the Electron version:

Electron Download Failures

If Electron fails to download during installation:
  1. Check network connection and firewall settings
  2. Use a proxy if behind corporate firewall:
  3. Download manually and set the cache:

Runtime Issues

Application Won’t Start

If the app crashes on startup:
1

Check Console Output

Look for errors in the terminal where you ran yarn start
2

Clear Application Data

3

Check Logs

View application logs for detailed error messages:

Hot Reload Not Working

If changes aren’t reflected after reloading (Ctrl/Cmd+Alt+R):
  1. Check webpack compilation in the terminal
  2. Look for compilation errors in DevTools console
  3. Restart the development server:
  4. For main process changes, rebuild:

Memory Issues

If you encounter out-of-memory errors during build:
The production build script already sets memory to 4GB. Increase further if needed.

Test Issues

Tests Failing Locally

If tests pass in CI but fail locally:
  1. Clear test cache:
  2. Run test setup:
  3. Check Node version matches CI environment

Specific Test Failures

Run a specific test to isolate issues:
Add --test-name-pattern to run a single test case:

Linting Issues

ESLint Cache Problems

Clear the ESLint cache:

Prettier Conflicts

If Prettier and ESLint have conflicting rules:
This validates that ESLint and Prettier configurations are compatible.

Git Issues

Submodule Problems

Update submodules if you see missing dependencies:

Uncommitted Changes

If you see “working directory not clean” errors:

TypeScript Issues

Type Errors

If you encounter type errors:
  1. Ensure dependencies are installed:
  2. Restart your TypeScript server (in VS Code: Cmd+Shift+P → “TypeScript: Restart TS Server”)
  3. Check TypeScript version:
  4. Verify tsconfig.json hasn’t been modified

Compilation Issues

Check TypeScript compilation separately:

Network and Proxy Issues

Corporate Proxy

Configure npm to use a proxy:
For Yarn:

Certificate Issues

If you encounter SSL certificate errors:
Disabling certificate validation is a security risk. Only use this temporarily and restore security settings afterward.

GitHub Enterprise Authentication

If you’re using GitHub Enterprise with your development build, follow the Enterprise authentication guide.

Dependency Issues

Lockfile Conflicts

If you have merge conflicts in yarn.lock:

Outdated Dependencies

Check for outdated dependencies:
Be cautious when updating dependencies, as they may introduce breaking changes.

Getting Help

If you’re still experiencing issues:
  1. Search existing issues: Check GitHub Issues for similar problems
  2. Check logs: Review application logs for detailed error messages
  3. Ask for help: Open a new issue with:
    • Your operating system and version
    • Node.js and Yarn versions
    • Complete error message
    • Steps to reproduce

Next Steps