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
[addon:google-analytics] throws "path is required in .pageview()" error #6012
Comments
@shilman @thundermiracle Should this issue be closed? I don't see that it has been fixed in Storybook. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I am seeing the same issue with the latest version of the addon and storybook/react (both v5.1.8). |
I cannot reproduce, using the @thundermiracle steps to reproduce, this https://thundermiracle.github.io/storybook-loader/?path=/story/documentation-basic--description seems to not log errors for me. What am I doing wrong, or has this been fixed? |
@ndelangen Sorry, I fixed it by customizing google-analytics addon, so the steps to reproduce is wrong. |
@ndelangen, @shilman this is still an issue and is reproducible. Although the issue extends beyond the google-analytics plugin.
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import { STORY_CHANGED, STORY_ERRORED, STORY_MISSING } from '@storybook/core-events';
import addonAPI from '@storybook/addons';
addonAPI.register('my-organisation/my-addon', api => {
api.on(STORY_CHANGED, () => {
console.log(api.getUrlState().url);
});
}); This will always log This usage is documented here, but it does not state what the I have not found any tests for @thundermiracle is correct that the addon plugin could be fixed by passing the path instead of the url |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
This behaviour is still broken in 5.1.11.
PR #8468 may fix this? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Crikey!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.7 containing PR #8468 that references this issue. Upgrade today to try it out! Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
throws
[react-ga] path is required in .pageview()
when upgrade to storybook 5.0.xTo Reproduce
Steps to reproduce the behavior:
Expected behavior
No error throws.
Screenshots
https://thundermiracle.github.io/storybook-loader/?path=/story/documentation-basic--description
then open the debug console and change to another story
Code snippets
System:
Additional context
api.getUrlState() returns { url: undefined } instead of { url: '/xxx/xxxx' } after upgrade to 5.0.x.
Is there something missing in core/context.js?
The text was updated successfully, but these errors were encountered: