zviryatko / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
2 stars 0 forks source link

deb version doesn't work on ubuntu 20.04 #2

Open kedazo opened 6 months ago

kedazo commented 6 months ago

I have installed the latest release .deb on my Ubuntu (20.04) but apparently I am unable to start the application, it throws an error at the beginning:

kedz@🌶:~$ google-chat-electron
A JavaScript error occurred in the main process
Uncaught Exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/lib/google-chat-electron/resources/app.asar/node_modules/mimic-response/index.js from /usr/lib/google-chat-electron/resources/app.asar/node_modules/decompress-response/index.js not supported.
Instead change the require of /usr/lib/google-chat-electron/resources/app.asar/node_modules/mimic-response/index.js in /usr/lib/google-chat-electron/resources/app.asar/node_modules/decompress-response/index.js to a dynamic import() which is available in all CommonJS modules.
    at c._load (node:electron/js2c/node_init:2:13672)
    at Object.<anonymous> (/usr/lib/google-chat-electron/resources/app.asar/node_modules/decompress-response/index.js:4:23)
    at c._load (node:electron/js2c/node_init:2:13672)
    at async node:electron/js2c/browser_init:2:120964

^C
kedz@🌶:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal