File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ yarn add -D axe-core vue-axe
1919import Vue from ' vue'
2020
2121if (process .env .NODE_ENV !== ' production' ) {
22- const VueAxe = require (' vue-axe' )
22+ const VueAxe = require (' vue-axe' ). default
2323 Vue .use (VueAxe)
2424}
2525```
@@ -42,7 +42,7 @@ The `customResultHandler` config property expects a callback like the `axe.run()
4242import Vue from ' vue'
4343
4444if (process .env .NODE_ENV !== ' production' ) {
45- const VueAxe = require (' vue-axe' )
45+ const VueAxe = require (' vue-axe' ). default
4646 Vue .use (VueAxe, {
4747 customResultHandler : (error , results ) => {
4848 results .violations .forEach (violation => console .log (violation))
@@ -91,7 +91,7 @@ Create plugin file `plugins/axe.js`
9191import Vue from ' vue'
9292
9393if (process .env .NODE_ENV !== ' production' ) {
94- const VueAxe = require (' vue-axe' )
94+ const VueAxe = require (' vue-axe' ). default
9595 Vue .use (VueAxe)
9696}
9797
You can’t perform that action at this time.
0 commit comments