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
The icon of the application becomes invisible, And clicking the icon doesn't run the application
The application should run when clicking the desktop icon
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



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 startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn 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 startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn 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 startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn 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 startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn 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 startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn 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!
Most helpful comment
@Sx3 I set
$env:NODE_ENV="production"before startingyarn 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 tokenGH_TOKEN=yourtokenor use the commandyarn electron-builder --publish never --x64. This error should not affect the build process.