Developmint/vue-link

Unexpected token 'export'

mrleblanc101 opened this issue · 1 comments

When using with Nuxt SSR, I have this error in the browser Unexpected token 'export'.
For some reason, this look like a build error but is not displayed in the terminal.
Do I need to transpile this library ? Should the npm package provide a transpiled version ?

To fix the issue in Nuxt:

// nuxt.config.js
export default {
    build: {
        transpile: ['vue-link'],
    },
}