Skip to content

Cannot find module 'electron-squirrel-startup' #216

@austin2118ace

Description

@austin2118ace

Hey @ucswift, I had this as a comment in the other thread, but figured I should open a new one so you can track it easier.

This problem also seems to persist in the latest Linux builds as well; a dependency must have been dropped somewhere?

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'electron-squirrel-startup'
Require stack:
- /opt/Resgrid Unit/resources/app.asar/electron/main.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1428:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:134237)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
    at Module._load (node:internal/modules/cjs/loader:1234:37)
    at c._load (node:electron/js2c/node_init:2:17999)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:252:24)
    at Module.require (node:internal/modules/cjs/loader:1511:12)
    at require (node:internal/modules/helpers:152:16)
[11050:0210/110835.369873:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.systemd1.Manager.StartTransientUnit: object_path= /org/freedesktop/systemd1: org.freedesktop.systemd1.UnitExists: Unit app-org.chromium.Chromium-11050.scope was already loaded or has a fragment file.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions