Skip to content

Conversation

@altaskur
Copy link
Owner

@altaskur altaskur commented Feb 6, 2026

Description

Moves electron-updater from devDependencies to dependencies in package.json to fix the packaged app crash.

Goal

Fix the ERR_MODULE_NOT_FOUND error when running the packaged (installed) version of the app. The alpha.4 release crashes on startup because electron-updater is not bundled into the final .asar package.

Key Changes

  • Moved electron-updater from devDependencies to dependencies in package.json
  • Updated package-lock.json accordingly

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Impact Assessment

Database Impact

  • No database changes

Backup Impact

  • No impact on backups

Testing

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Tested with SonarQube analysis

Test Steps

  1. Run npm run dist:win to build the installer
  2. Install the app
  3. Launch OpenTimeTracker - it should start without ERR_MODULE_NOT_FOUND

Test Configuration

  • Node version: 20+
  • npm version: 10+
  • Platform tested: Windows

Checklist

  • My code follows the project's coding standards
  • I have performed a self-review of my code
  • My changes generate no new warnings or errors
  • New and existing unit tests pass locally with my changes
  • I have run npm run lint and fixed any issues
  • I have run npm test and all tests pass
  • I have run npm run test:electron and all tests pass
  • I have run npm run sonar:check and the analysis passes
  • Any dependent changes have been merged and published

Breaking Changes

  • This PR contains breaking changes

Additional Context

In development mode (npm run dev), all dependencies (both dependencies and devDependencies) are available in node_modules, so the app works fine. However, electron-builder only bundles packages from dependencies into the final .asar, causing the installed app to fail when trying to import electron-updater.

@altaskur altaskur merged commit 32ae833 into develop Feb 6, 2026
1 check passed
@altaskur altaskur deleted the fix/move-electron-updater-to-dependencies branch February 6, 2026 23:30
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.

1 participant