Jinjiang / vue-a11y-utils

Utilities for accessibility (a11y) in Vue.js

Home Page:https://jinjiang.github.io/vue-a11y-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt integration example

marekalgoud opened this issue · comments

Is your feature request related to a problem? Please describe.

I would like to use vue-a11y-utils in a nuxt project, but when I tried to intergrate it in a component, I've this following error :

SyntaxError: Cannot use import statement outside a module

Describe the solution you'd like

Give an example of nuxt intergration (plugin example would be perfect). On my side I had to add this to the nuxt config to make it work on server side :

build: {
    transpile: [ 'vue-a11y-utils']
  },

Thanks for your work !

Hi, is that still not working? I tried an empty nuxt project with vue-a11y-utils and it worked well.

image

image

Anyway, the newly released v0.8.0 supports both CJS and ESM formats. So this problem has been solved. Thanks.