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
The issue here is that this library uses a non standard global Buffer method. There may be a case where this is failing for others who have upgraded to the latest compilers too.
If that is not in the timelines, perhaps make the error more graceful, with the library explicitly checking for if Buffer exists. I wouldn't be surprised if other users of PubNub are not aware their client started failing due to a webpack upgrade.
As an aside, are there docs on where/how to handle errors like this? We weren't aware of the issue for months as nothing obvious was erroring within the addListener({message method, and logVerbosity:true did not surface any errors.
The text was updated successfully, but these errors were encountered:
PubNub client has been failing for us since we upgraded to the latest Webpack, which no longer polyfills nodejs methods.
The issue here is that this library uses a non standard global
Buffer
method. There may be a case where this is failing for others who have upgraded to the latest compilers too.Some thoughts:
Buffer
exists. I wouldn't be surprised if other users of PubNub are not aware their client started failing due to a webpack upgrade.As an aside, are there docs on where/how to handle errors like this? We weren't aware of the issue for months as nothing obvious was erroring within the
addListener({message
method, andlogVerbosity:true
did not surface any errors.The text was updated successfully, but these errors were encountered: