Unexpected token 'export'
mrleblanc101 opened this issue · 1 comments
mrleblanc101 commented
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 ?
mrleblanc101 commented
To fix the issue in Nuxt:
// nuxt.config.js
export default {
build: {
transpile: ['vue-link'],
},
}