Build Issues
Clean Build
If you encounter unexpected build errors, try a clean build:Remove Build Artifacts
node_modules/directoryapp/node_modules/directoryout/build output directory
Hard Rebuild
Use the combined rebuild commands:Node.js and npm Issues
Version Compatibility
Ensure you’re using compatible versions:Yarn Installation
If Yarn is not installed:Windows-Specific Issues
node-keytar Build Failures
Ifkeytar fails to build during npm install:
Build Tools Missing
Windows builds require Visual Studio Build Tools:Install Build Tools
Download Visual Studio Build Tools
Python Not Found
Node-gyp requires Python 3.9+:- Install Python from python.org
- Add Python to PATH during installation
- Verify installation:
macOS-Specific Issues
Xcode Command Line Tools
If compilation fails on macOS: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:- Check network connection and firewall settings
- Use a proxy if behind corporate firewall:
- Download manually and set the cache:
Runtime Issues
Application Won’t Start
If the app crashes on startup:Hot Reload Not Working
If changes aren’t reflected after reloading (Ctrl/Cmd+Alt+R):
- Check webpack compilation in the terminal
- Look for compilation errors in DevTools console
- Restart the development server:
- 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:-
Clear test cache:
-
Run test setup:
- Check Node version matches CI environment
Specific Test Failures
Run a specific test to isolate issues:--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: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:-
Ensure dependencies are installed:
-
Restart your TypeScript server (in VS Code:
Cmd+Shift+P→ “TypeScript: Restart TS Server”) -
Check TypeScript version:
- 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:Certificate Issues
If you encounter SSL certificate errors: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 inyarn.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:- Search existing issues: Check GitHub Issues for similar problems
- Check logs: Review application logs for detailed error messages
- Ask for help: Open a new issue with:
- Your operating system and version
- Node.js and Yarn versions
- Complete error message
- Steps to reproduce