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
I've been trying and searching for answers for two evenings now and I still can't figure it out.
When I try to initialize this client in db.ts file either in root folder or in plugins folder, I always receive the ReferenceError: Buffer is not defined error. I understand that Buffer is a function of Node, but I'm not sure why it cannot be reached.
I logged globalThis.Buffer within the plugin file and see that it IS available, so why can't this client access it?
Any help would be much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been trying and searching for answers for two evenings now and I still can't figure it out.
When I try to initialize this client in
db.ts
file either in root folder or in plugins folder, I always receive theReferenceError: Buffer is not defined
error. I understand thatBuffer
is a function of Node, but I'm not sure why it cannot be reached.I logged
globalThis.Buffer
within the plugin file and see that it IS available, so why can't this client access it?Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions