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
Uncaught ReferenceError: window is not defined
at worker.mjs:5087:5433
at worker.mjs:5087:17531
After investigating the worker.mjs the issue seems to be coming from analytics.js-video-plugins that is being added at the end of the worker.mjs file, even though I only import AnalyticsBrowser:
@octave There is no current way to exclude analytics.js-video-plugins.
The window object is assumed to be available. Disabling this plugin probably wouldn't be sufficient, as fixing this error would probably just mean another error appears in another plugin.
If you want to test simply disabling it, you can use this (unstable, use at your own risk API):
@silesky got it, I ended up reverting to using the script tag directly, this way it doesn't get bundled in the app and so the deployment works. Thanks!
When using
@segment/[email protected]
in a@shopify/[email protected]
application, deploying fails after building with this error:After investigating the
worker.mjs
the issue seems to be coming fromanalytics.js-video-plugins
that is being added at the end of theworker.mjs
file, even though I only importAnalyticsBrowser
:It works fine in development but it fails to deploy. Is it possible to not have
analytics.js-video-plugins
added to the build?The text was updated successfully, but these errors were encountered: