Skip to content
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

Unexpected token 'export' #64

Open
mrleblanc101 opened this issue Sep 13, 2021 · 1 comment
Open

Unexpected token 'export' #64

mrleblanc101 opened this issue Sep 13, 2021 · 1 comment

Comments

@mrleblanc101
Copy link

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
Copy link
Author

To fix the issue in Nuxt:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant