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
Syntax Error when using 'target: server' with Nuxt.js #97
Comments
I think the problem is that the module ships the raw Until then, I HIGHLY recommend taking a look at the source-code, as you can easily drop Fuse.js into your project directly and build your own fuzzy search functionality. This package doesn't do anything special, just a convenience wrapper around Fuse. |
I had the same issue but got it to work by wrapping the client-only component around it. <client-only>
<VueFuse />
</client-only> Any the import the VueFuse component like this. export default {
components: {
VueFuse: () => import('vue-fuse')
}
} |
Closing as I just released 4.x, which takes this in a different direction |
While this approach did work for me in the end, I have just noticed that it created a huge memory leak. Trying to find a workaround now. |
Have you tried importing the component on a client-only plugin? That usually solves all the similar issues I encounter. |
Issue related to: #82
When using server-side Nuxt.js with:
with component registration:
I get the syntax error "Unexpected token '<'"
The problem seems to be associated with SSR. Tried out rendering only client-side:
and this strangely works. Any reason why
target: 'server'
seems to break and what we can do about it?The text was updated successfully, but these errors were encountered: