-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
A11y addon throws error when used with Vue/Angular #3813
Comments
I'm experiencing exactly the same issue with Angular. |
I have exactly the same issue and identical error in Vue components. |
@aminimalanimal @agnislav @Eelsie sorry for only answering back now.
The problem is that you're using stable release, which does not contain changes that made the addons framework agnostic (https://github.com/storybooks/storybook/blob/release/3.4/ADDONS_SUPPORT.md, branch |
Thanks a lot! I will do that! |
I got the environment running with addon-a11y by updating all of my
function generateSelector(elm, options, doc) {
if (!axe._selectorData) {
throw new Error('Expect axe._selectorData to be set up');
} I see that react-axe ran into this issue and corrected it by waiting a little bit before running axe. Maybe this add-on needs to do something similar? I'm happy to open a new issue (and close this one) if you'd prefer, @Keraito. |
@aminimalanimal that sounds unrelated to the original problem in this issue, so let's close this one and open a new one yes. |
@Keraito Did you open that new ticket? still getting this bug? |
Yes, I'm still receiving the |
@matthewharwood I think I was supposed to do that, but I haven't found the time to yet. It's in my queue, but feel free to open it before I do. |
This is happening again with v4.0.0-alpha.20. |
@kyleoliveiro Please open a new ticket for it. I tried upgrading to alpha 20 and it didn't go well for me and I had to reverse the update back to alpha 14, so if you're on 20, you can at least give them an accurate ticket that applies to the version they're currently working on. |
Bug summary
When I attempt to use the A11y add-on with Vue, the screen goes red and I receive the following error:
I've added the complete output later in this description.
Steps to reproduce
I have registered the A11y add-on within .storybook/addons.js as described in the documentation:
DemoComponent.vue
DemoComponent.story.js
When I remove
.addDecorator(checkA11y)
from the story, this works. I can also use the Knobs decorator successfully.Storybook and Addon versions
Error Output and Attempts at Debugging
The storybook stage is taken over with the following error output:
The function throwing the error is:
This is the breaking line:
I placed a breakpoint on that line and copied
decoratedStory
:It should be noted that this object doesn't have all of the data logging this out yourself will provide. I can see, for example, that
$$typeof: Symbol(react.element)
is also on it.I hope that this information is helpful in resolving the issue. I'm not really sure what I should expect to see in the
decoratedStory
object or if there's anything I can do to resolve this.The text was updated successfully, but these errors were encountered: