ktquez / vue-disqus

Integrate Disqus count and comments in your application Vue 3, with support for SPA
https://ktquez.github.io/vue-disqus/
MIT License
253 stars 26 forks source link

vue-disqus 5.1.0 breaks Nuxt #64

Closed CAT6e closed 3 years ago

CAT6e commented 3 years ago

Hi

After upgrading to 5.1.0, I got this error once I run dev

e.provide is not a function disqus

image

(Maybe this causes the error?) Since there's no changelog of this version, I didn't change how I init the plugin. This is how I init the plugin.

import Vue from 'vue';
import VueDisqus from 'vue-disqus';

Vue.use(VueDisqus, {
  shortname: 'MYDISQUSNAME',
});

The only solution is to downgrade back to 4.0.1, and the error disappears.

I hope this information useful. Thank you.

Environments: Nuxt 2.15.7 Node 14.15.3

ktquez commented 3 years ago

Did you solve?

CAT6e commented 3 years ago

@ktquez Solved by using version 4.0.1 since then. I think there's no hope of using 5.1 with Nuxt.

ktquez commented 3 years ago

Awesome!

@CAT6e Soon yes, when Nuxt releases support for Vue 3.