-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer() is deprecated #12
Comments
I guess the deprecation part is just a warning. When testing 'hello world' the gui appears: haugerud@lap:~/src/nodegui-starter$ npm run start
asset nodegui_core-7e708aeaa743573591eb69defd359ae8.node 8.29 MiB [emitted] (auxiliary name: main) |
Hey, sorry just getting to this, this appears to be an issue with the node |
Same to me. It worked very fine for 30 minutes. The i created a launcher entry for the AppImage and started it maybe a few times and had more than one instance running. When starting from CMD i get following error
|
So the "Buffer() is deprecated" is a warning because of one of the dependencies being used for this app. And has always been there, and hasn't caused the app to not work. I thought I had closed this issue previously, so if you wouldn't mind creating a new issue using the bug template so I could more directly support your issue you are experiencing |
The problem is that newer nodejs versions now block execution. |
Thanks for a nice piece of software!
Would it be possible to fix this issue? Or am I doing something wrong? No GUI appears when running the code.
haugerud@lap:~/src/keylight-control$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
haugerud@lap:
/src/keylight-control$ node --version/src/keylight-control$ nodejs --versionv10.19.0
haugerud@lap:
v10.19.0
haugerud@lap:~/src/keylight-control$ npm --version
6.14.4
haugerud@lap:~/src/keylight-control$ npm run start
assets by path assets/.png 26.8 KiB
asset assets/app_icon.png 24.1 KiB [emitted] [from: src/assets/app_icon.png] [copied]
asset assets/bg.png 1.29 KiB [emitted] [from: src/assets/bg.png] [copied]
asset assets/power_off.png 554 bytes [emitted] [from: src/assets/power_off.png] [copied]
asset assets/power_on.png 531 bytes [emitted] [from: src/assets/power_on.png] [copied]
asset assets/bulb.png 271 bytes [emitted] [from: src/assets/bulb.png] [copied]
asset nodegui_core-1ea1e3f425fd036c191347fdd1f2e002.node 7.68 MiB [emitted] (auxiliary name: main)
asset index.js 1.67 MiB [emitted] (name: main)
runtime modules 793 bytes 4 modules
modules by path ./node_modules/ 1.39 MiB 330 modules
modules by path ./src/.js 10.9 KiB
./src/index.js 5.14 KiB [built] [code generated]
./src/keylight.js 5.75 KiB [built] [code generated]
17 modules
webpack 5.53.0 compiled successfully in 1269 ms
(node:142536) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use
qode --trace-deprecation ...
to show where the warning was created)The text was updated successfully, but these errors were encountered: