Hi there,
I recommend referring to the Buffer npm docs here for more information on any changes that were made to the syntax.
I located a post for you on stackoverflow that may help you out resolving this issue.
Also, please take a look at our package support guidelines when working with npm packages on your site.
https://support.wix.com/en/article/corvid-working-with-npm-packages
Best regards,
Miguel