New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 'path is required in .pageview()' in GA addon #8468
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/ia5ysh0pb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance you can test this? I have very little confidence that renamimg a variable would fix the problem, since it's not passed as a named argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance you can test this? I have very little confidence that renamimg a variable would fix the problem, since it's not passed as a named argument.
@shilman WDYM? that returns both a url and a path ? |
@ndelangen so you think it's erroring because it's being passed a URL instead of a path. Can you test it? I'm not keen to merge a change that hasn't been tested. |
Facing the same issue. As a temporary workaround i've added the same STORY_CHANGED event listener to another internal addon:
Switching UPDATE: formatting |
Thanks @vesahyp! Merging! |
Fix 'path is required in .pageview()' in GA addon
See #6012
This uses the fix in https://github.com/thundermiracle/storybook-loader/pull/19/files. Not tested - I don't have Typescript running locally.