benjaminhoffman / gatsby-plugin-segment-js

Gatsby plugin for segment.com's analytic.js snippet
https://www.npmjs.com/package/gatsby-plugin-segment-js
MIT License
40 stars 28 forks source link

Unexpected identifier 'window' #55

Closed eDubrovsky closed 1 year ago

eDubrovsky commented 1 year ago

Hi! I have a problem with the plugin version 4.0.1.

In the console, I get the error: Uncaught SyntaxError: Unexpected identifier 'window'

Check image image

newhouse commented 1 year ago

Hello! That's odd. What browser and version are you using?

window ought to always be there in a browser.

newhouse commented 1 year ago

Nevermind, it's a straight syntax error. Will fix.

newhouse commented 1 year ago

@eDubrovsky should be fixed in v4.0.2. Can you confirm?

eDubrovsky commented 1 year ago

@newhouse, now I get another error:

CleanShot 2022-12-16 at 22 21 26@2x CleanShot 2022-12-16 at 22 22 48@2x
newhouse commented 1 year ago

Ugh. Sorry. Can you try this version: 4.0.3-beta.0?

eDubrovsky commented 1 year ago

Yes, it works! Thanks :)

newhouse commented 1 year ago

Great! Sorry about that!