ocordeiro / vue-smooth-scroll

Simple vue smooth scroll
77 stars 12 forks source link

[Vue warn]: Failed to resolve directive #13

Open Ic3m4n34 opened 6 years ago

Ic3m4n34 commented 6 years ago

I want to use the plugin but for some reason it doesn't work. Thats the warining that shows up in my console:

[Vue warn]: Failed to resolve directive

And here is my code:

import Vue from 'Vue';
import vueSmoothScroll from 'vue-smooth-scroll';

Vue.use(vueSmoothScroll);

export default {
name: 'home-view',
components: {
  },
layout: 'default',
mixins: [
  PageHeaderFromContentData,
  vueSmoothScroll,
],
data() {
  return {
    openLayer: null,
  };
},
methods: {
  },
};

And thats my template:

<a v-smooth-scroll href="#startpage-possibilities">anchor</a>
<div id="startpage-possibilities">###</div>
terryupton commented 5 years ago

Same issue here. Did you manage to solve this at all @Ic3m4n34 ?