tserkov / vue-scroll-reveal

A Vue directive to wrap @jlmake's excellent ScrollReveal library.
MIT License
163 stars 17 forks source link

vue-scroll-reveal not working #38

Closed gustavo-sotero closed 2 years ago

gustavo-sotero commented 2 years ago

I imported the library into my project but when I activated the library using Vue.use I got this error "Uncaught TypeError: undefined is not a non-null object"

I didn't do any configuration I just activated the library and got this error.

my code:

import { createApp } from 'vue';
import App from './App.vue'

import VueScrollReveal from 'vue-scroll-reveal';

let myApp = createApp(App);
myApp.use(VueScrollReveal);
myApp.mount('#app');
daminvo commented 2 years ago

same problem I guess it doesn't work with vue 3

tserkov commented 2 years ago

vue-scroll-reveal@2 supports Vue 3 (& Nuxt 3). Will be published to NPM at the end of this week barring any issues.