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
When manually bundling @segment/analytics-next together with the GTM plugin from @segment/analytics.js-integration-google-tag-manager, a runtime error is thrown;
ReferenceError: global is not defined
Somewhere deep down, this global variable is used to refer to globalThis, but this is Node-specific. Currently, I'm using a workaround that does something along the lines of
When manually bundling
@segment/analytics-next
together with the GTM plugin from@segment/analytics.js-integration-google-tag-manager
, a runtime error is thrown;Somewhere deep down, this
global
variable is used to refer toglobalThis
, but this is Node-specific. Currently, I'm using a workaround that does something along the lines ofThis fixes the error and the bundle works properly. Of course, however, I shouldn't have to do this.
The issue originates from
@segmentio/fmt
and I took the liberty of opening a pull request: segmentio/fmt#3. This issue is mostly for visibility.The text was updated successfully, but these errors were encountered: