Closed azurenekowo closed 2 years ago
Which version of booru and node.js are you using?
Latest (2.5.3
) and previous latest (2.5.2
) both work for me on linux, wsl, and windows (Node.js v16.6.2 and v17.0.1)
@AtoraSuunva the friend who reported me this error is running node v10.17, maybe that is the problem? I just fired up my linux mint vm w/ node v17 and it works fine...
Also, I just figured out that my window subsystem for linux terminal runs node v12... my friend is running Debian as well.. maybe this case is solved.
Seems to be it, there's an optional chain operator ?.
here https://github.com/AtoraSuunva/booru/blob/master/src/Utils.ts#L69
Support for it starts on Node.js v14, so any version < 14 won't work
I could support lower versions, but v10 is already end-of-life, and v12 is reaching end of life in a few months
https://nodejs.org/en/about/releases/
So it's a better idea to update to node v14 or above than stay on an unsupported node version
@AtoraSuunva thanks for the informative info, hope you a good day
When I run this module on a Linux device it just crashes with this error code: