Closed mbengchan closed 6 years ago
I solved my own problem. created a new plugin under the nuxt plugins directory and added the plugin to the nuxt.config.js file and disabled server-side-rendering option
{ src: '~plugins/vue-aplayer', ssr: false },
everything is working fine now
@Shadomax Glad you have solved it! Vue-APlayer has not been tested out with SSR, but I believe audio
element does not work well with SSR.
I tried this same method and the document
error is still occurring. Any thoughts @SevenOutman?
@smilingpeanut As explained before, Vue-APlayer probably doesn't work with SSR.
Right, I totally get that. But with SSR off as in the previous comment, the bug is still occurring.
On Jun 6, 2018, 5:37 PM -0600, Doma notifications@github.com, wrote:
@Shadomax As explained before, Vue-APlayer probably doesn't work with SSR. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@smilingpeanut Well I'll look into it.
When i import the plugin in a Nuxt.js page i get a document not defined. Can these plugin work in SSR for example Nuxt.js