I am planning to use jsplumb in my app
my current code looks like this
<template>
<client-only>
<div id="canvas"></div>
</client-only>
</template>
<script>
import { jsPlumb } from 'jsplumb'
export default {
name: 'JsPlumb',
auth: false,
mounted() {
jsPlumb.ready(function () {})
}
}
</script>
when I run my app, this throws an error of document is not defined
. I already found out that jsplumb wont work on SSR. How can I achieve it to use import for jsplumb that it wont throw an error. Is there a dynamic import in nuxt that only imports the library in non-ssr?