YunoHost-Apps / audiobookshelf_ynh

Audiobookshelf package for YunoHost
https://audiobookshelf.org/
GNU General Public License v3.0
4 stars 4 forks source link

"Unhandled rejection: structuredClone is not defined" - Upgrade Node version 16 to 18 #118

Closed wojtek1171 closed 3 weeks ago

wojtek1171 commented 1 month ago

Audiobookshelf currently crashes on FATAL: [Server] Unhandled rejection: ReferenceError: structuredClone is not defined as 'structuredClone' function was introduced in Node 17. https://github.com/advplyr/audiobookshelf/issues/2854

Yunohost version of ABS uses node 16.2. Updating version in files in /opt/node_n/ynh_app_version or /etc/yunohost/apps/audiobookshelf doesn't make any changes.

wojtek1171 commented 3 weeks ago

Any chances for that PR? I can't force ABS to use other version of node. Currently I had to change the part of the code with unhandled function to make it work.

navanchauhan commented 3 weeks ago

@wojtek1171 testing branch should work now. We will be merging it to master very soon