Closed hamedsrk closed 3 years ago
if you're using this with nuxt.js, consider defidining this as a plugin and omitting it from server side rendering.
// ./plugins/v-marquee-text.js
import Vue from 'vue'
import MarqueeText from 'vue-marquee-text-component'
// eslint-disable-next-line vue/component-definition-name-casing
Vue.component('marquee-text', MarqueeText)
in your nuxt.js configuration
// ./nuxt.config.js
{
//...
plugins: [
{ ssr: false, src: './plugins/v-marquee-text.js' }
],
//...
}
Sorry @hamedsrk I don't use nuxt. @kylewelsby thank you for your support
greeting i want to use this package in nuxt and i got this error message
var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
do you have any solution ?