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
In src/utils.ts, the console methods are cached. However, in a JS worker, window is undefined, and, so, this code fails with "ReferenceError: window is not defined".
I have the same problem, and at the moment I'm unable to use this library in my client-side code. I'm using @logdna/logger instead, but that also has some problems because it's written for node and not for the browser.
In
src/utils.ts
, the console methods are cached. However, in a JS worker,window
is undefined, and, so, this code fails with "ReferenceError: window is not defined".It appears these cached methods are only used in two places: src/plugins/logger.ts and src/capture.ts.
The text was updated successfully, but these errors were encountered: