You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When imported in an electron application, the application does not start.
Here is the error message displayed:
> walc@0.1.11 start /home/cstayyab/Development/cstayyab/WALC
> electron .
**
GLib-GObject:ERROR:../gobject/gvaluetypes.c:454:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Bail out! GLib-GObject:ERROR:../gobject/gvaluetypes.c:454:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
/home/cstayyab/Development/cstayyab/WALC/node_modules/electron/dist/electron exited with signal SIGABRT
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! walc@0.1.11 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the walc@0.1.11 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cstayyab/.npm/_logs/2020-12-30T10_12_49_820Z-debug.log
Reproduction steps
Steps to reproduce the behavior:
Create a new Electron Application
Run it to test and it will successfully run
Now close the app and add whatsapp-web.js using npm
Import it to app using require.
Try running the app again
Expected behavior
the app should start.
Relevant code
const{ Client }=require('whatsapp-web.js');
The above line causes the issue
Environment (please complete the following information):
WhatsApp
Not Applicable because it doesn't even get to that part
Library
Browser [Chrome / Chromium]: Chrome/71.0.3578.80
NodeJS version (node -v): v12.16.1
npm or yarn version (npm -v): 6.13.4
whatsapp-web.js version: 1.12.0
Additional context
The problem has something to do with sharp and libvips. Here is a related issue. lovell/sharp#2356
The text was updated successfully, but these errors were encountered:
Bug description
When imported in an electron application, the application does not start.
Here is the error message displayed:
Reproduction steps
Steps to reproduce the behavior:
Expected behavior
the app should start.
Relevant code
The above line causes the issue
Environment (please complete the following information):
WhatsApp
Not Applicable because it doesn't even get to that part
Library
node -v
): v12.16.1npm -v
): 6.13.4Additional context
The problem has something to do with sharp and libvips. Here is a related issue. lovell/sharp#2356
The text was updated successfully, but these errors were encountered: