-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Console errors: Cannot read property 'violations' of undefined -- Nuxt #32
Comments
Just wanted to say that I got the same errors using Vue. |
I'm sorry for answering so late. I am working on the new version of vue-axe, and I believe that I have already discovered the problem. Soon I will upload a correction for the current version. I will notify you here when the correction is available. Thank you all. |
@ktquez Any update on this fix? |
I'm with this problem too using it with Nuxt.js |
I'm sorry for not paying attention to this issue before, but I have been busy for the past few months. |
I made some changes based on the vue-axe-next, then tested it on a nuxt project and did not receive any more errors. Thanks |
@ktquez I just tested the latest package and the issue appears fixed - thanks! |
@ktquez Sorry, I spoke too soon -- still seeing occasionally seeing these 'violation' errors. |
I too am facing this issue, I am using vue-axe (2.4.4) and axe-core (4.1.1). This happens to me in a page where I have an ajax call,
|
I also get this error alot. It happens 100% of the time if I open and then close a modal (im using the Modal component from BootstrapVue). I am not using Nuxt, just a client-side SPA scaffolded via vue-cli. |
Hi guys, thanks for feedback. |
Some update for this? |
Sorry @lucas-caponi-playkids I should have already finished this issue. |
I'm so sorry to hear that @ktquez, make sure you take as much time as you need to focus on the things that matter in life! this issue can obviously wait. |
Any updates on this? I'm still seeing the issue that @123survesh detailed above. |
Seeing two errors come up on Nuxt over and over despite following documentation for installing.
Everything seems to be working okay, but I see two errors on each page after refreshing:
Image of the console errors thrown
My best guesses for these errors
The first issue appears (
Cannot read property 'violations' of undefined
fromvue-axe.esm.js
) to be related to vue-axe.The second is coming from
axe.js
(Uncaught (in promise) Error: No elements found for include in page Context
). From what I can tell, this isn't theaxe.js
file inplugins/axe.js
. Of course, I could be mistaken.Attempted troubleshooting
I deleted alt text from an image and saved it; after a hot reload the errors do not log, but if I then refresh the page they are logged.
Console after running env in dev
First run of page - Image has alt text
After saving without alt on image
Hot reloaded page - removed alt text and saved
Then after refreshing
Not a hot reload - still no alt text
On the bright side
Besides those console errors, everything else seems to work great!!
Help me help you
Sorry if my issue lacks info. (I'm not the main dev on our small team, and my knowledge of Nuxt and Vue-Axe could use improvement -- obviously). If I can provide more info or logs, let me know.
Side note
Accessibility is a top priority for our team (WCAG AA 2.1), and I would love to get this implemented to save our devs time and provide them with an awesome resource. I'm certified in WCAG through WebAIM, but your plugin is a better resource than me :).
The text was updated successfully, but these errors were encountered: