Rocket.chat.electron: Rocket Chat app is invisible after install

Created on 9 Oct 2020  路  19Comments  路  Source: RocketChat/Rocket.Chat.Electron

My Setup

  • Operating System: Windows 10 Pro
  • App Version: 3.0.2
  • Installation type: exe

  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Description

After installing the client on Windows the app creates the desktop icon, but when hovering the mouse over the icon it becomes invisible, And clicking the icon doesn't run the application

Current Behavior

The icon of the application becomes invisible, And clicking the icon doesn't run the application

Expected Behavior

The application should run when clicking the desktop icon

Most helpful comment

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

All 19 comments

The same issues in version 3.0.3. @tassoevan I need your help. How to build package properly?
I perform:
yarn
yarn build
yarn electron-builder --publish never --x64 (yarn release not included)
build exe-package, but after installation to the system, and start desktop chat, the desktop client is invisible.
chat is present in system
Screenshot_5
Screenshot_4
Screenshot_6

yarn start - works as expected

UPD: The same things happen in Linux Mint20 ulyana (deb. package)

Same issue with version 3.0.3 on windows 10
The installer is installing but the program does not work.
if we run the Rocket.Chat.exe from the *distwin-unpacked* from CMD it is showing the following issue

Error: Cannot find module 'chokidar'
Require stack:
- E:\RocketChat_Dev_2020_2\Rocket.Chat.Electron\dist\win-unpacked\resources\app.asar\app\main.js
-
    at Module._resolveFilename (internal/modules/cjs/loader.js:961:15)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:257:919)
    at Module._load (internal/modules/cjs/loader.js:844:27)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:1023:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at E:\RocketChat_Dev_2020_2\Rocket.Chat.Electron\dist\win-unpacked\resources\app.asar\app\main.js:686:103 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'E:\\RocketChat_Dev_2020_2\\Rocket.Chat.Electron\\dist\\win-unpacked\\resources\\app.asar\\app\\main.js',
    undefined
  ]
}

@Sx3 The environment variable NODE_ENV=production is missing.

@tassoevan Thanks a lot for your help

Error #1 --------------------------------------------------------------------------------
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher (E:RocketChat_Dev_2020_2Rocket.Chat.Electron-3.0.4node_moduleselectron-publishsrcgitHubPublisher.ts:47:15)
at createPublisher (E:RocketChat_Dev_2020_2Rocket.Chat.Electron-3.0.4node_modulesapp-builder-libsrcpublishPublishManager.ts:273:14)
at PublishManager.getOrCreatePublisher (E:RocketChat_Dev_2020_2Rocket.Chat.Electron-3.0.4node_modulesapp-builder-libsrcpublishPublishManager.ts:196:19)
at PublishManager.scheduleUpload (E:RocketChat_Dev_2020_2Rocket.Chat.Electron-3.0.4node_modulesapp-builder-libsrcpublishPublishManager.ts:137:28)
at PublishManager.artifactCreatedWithoutExplicitPublishConfig (E:RocketChat_Dev_2020_2Rocket.Chat.Electron-3.0.4node_modulesapp-builder-libsrcpublishPublishManager.ts:180:14)

@tassoevan Thanks a lot for your help

is it worked for you?... if yes please share the fix :)

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

You can also append the publish flag to the release script:
yarn release --publish never

Got it working thanks !

@johnypeterson Any updates on newer versions?

@tassoevan works on 3.0.4, thanks

I as well am having the: Error: Cannot find module 'chokidar' error when running the unpacked exe from cmd.

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

After setting NODE_ENV my issue was resolved.

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

After setting NODE_ENV my issue was resolved.

Hey, how did you set it? I'm on Windows

Press Windows Key
Type in: Environment variables

Select the "edit the system environment variables".

Select 4th button down: "Environment Variables..."

Add desired variables to the system one.

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

After setting NODE_ENV my issue was resolved.

Hey, how did you set it? I'm on Windows

See message above

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

After setting NODE_ENV my issue was resolved.

Hey, how did you set it? I'm on Windows

See message above

Thank. you. so. much! I was struggling with that for so long now! Thank you!

@Sx3 I set $env:NODE_ENV="production" before starting yarn build. Your new error about publishing to your repo, If you would like to publish a release to your repo, you must set env variable with your Github token GH_TOKEN=yourtoken or use the command yarn electron-builder --publish never --x64. This error should not affect the build process.

After setting NODE_ENV my issue was resolved.

Hey, how did you set it? I'm on Windows

See message above

Thank. you. so. much! I was struggling with that for so long now! Thank you!

Anytime!

As far as I know the linux equivalent of that is just:

export NODE_ENV="production"

Which is alot easier than navigating 3 menus.

I tried the above methods but it doesn't work. Anyone who can fix it, please help me with step-by-step instructions. I need to build on Ubuntu.
Thanks everyone!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agentirons picture agentirons  路  4Comments

AlynxZhou picture AlynxZhou  路  4Comments

tendo256 picture tendo256  路  4Comments

geekgonecrazy picture geekgonecrazy  路  4Comments

engelgabriel picture engelgabriel  路  5Comments