Skip to content

Unable to start desktop app inside electron: app.makeSingleInstance is not a function #7945

Closed
@ploth

Description

@ploth

Description

npm run electron throws error

> [email protected] electron /home/ploth/projects/riot-web
> npm run install:electron && electron .


> [email protected] install:electron /home/ploth/projects/riot-web
> install-app-deps

  • please use as subcommand: electron-builder install-app-deps
  • electron-builder version=20.29.0
  • loaded configuration file=package.json ("build" field)
  • installing production dependencies platform=linux arch=x64 appDir=/home/ploth/projects/riot-web/electron_app
App threw an error during load
TypeError: app.makeSingleInstance is not a function
    at Object.<anonymous> (/home/ploth/projects/riot-web/electron_app/src/electron-main.js:103:24)
    at Object.<anonymous> (/home/ploth/projects/riot-web/electron_app/src/electron-main.js:277:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at loadApplicationPackage (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:119:12)
    at Object.<anonymous> (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:164:5)
    at Object.<anonymous> (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:204:3)
Unhandled exception TypeError: app.makeSingleInstance is not a function
    at Object.<anonymous> (/home/ploth/projects/riot-web/electron_app/src/electron-main.js:103:24)
    at Object.<anonymous> (/home/ploth/projects/riot-web/electron_app/src/electron-main.js:277:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at loadApplicationPackage (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:119:12)
    at Object.<anonymous> (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:164:5)
    at Object.<anonymous> (/home/ploth/projects/riot-web/node_modules/electron/dist/resources/default_app.asar/main.js:204:3)

Steps to reproduce

  • git clone https://github.com/vector-im/riot-web.git
  • cd riot-web
  • npm install
  • npm run build
  • npm install electron
  • npm run electron

Expectation: Normal startup of the riot desktop client

Version information

  • Platform: Desktop
  • OS: Gentoo
  • Version: 0.17.8 (current master branch)
  • Electron version: 4.0.0
$ npm --version
6.4.1
$ node --version
v8.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions