WOW
WOW copied to clipboard
Cannot set property 'getPropertyValue' of undefined
I use wowjs in vue3, but I keep reporting errors.
my code like this
<script>import { WOW } from "wowjs"; import { onMounted } from "vue"; export default { name: "App", components: { Header, Footer, }, setup() { onMounted(() => { new WOW().init(); }); }, }; </script>
But if I put wow.min.js in the head of index.html, he can work normally, and it keeps reporting the above errors when installing through npm or yarn. I need your help! Thank you!
I had the same problem
I had the same problem
I had the same problem
I use wowjs in vue3, but I keep reporting errors.
my code like this
<script>import { WOW } from "wowjs"; import { onMounted } from "vue"; export default { name: "App", components: { Header, Footer, }, setup() { onMounted(() => { new WOW().init(); }); }, }; </script>
But if I put wow.min.js in the head of index.html, he can work normally, and it keeps reporting the above errors when installing through npm or yarn. I need your help! Thank you!
You need to use wow.js instead of wowjs in Vue3.
npm install wow.js --save
# or
yarn add wow.js
import WOW from "wow.js";
I had the same problem when built in modern mode in a nuxt2 project.
I had the same problem
我也有同样的问题 打包部署到服务器上就出现这个问题了
Hello,我是林昕,我已收到来信~
I have installed wow.js for vue3 but i also have the same problem . "wow.js": "^1.2.2"
Hello,我是林昕,我已收到来信~
i'm revise the wow options , this problome has gone.
import WOW from 'wow.js'
onMounted(() => { const wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true, scrollContainer: null, resetAnimation: true, }) wow.init() })
Hello,我是林昕,我已收到来信~
What @abadm suggested worked for me.
npm install wow.js --save
# or
yarn add wow.js
import WOW from "wow.js";
Notice it's NOT import { WOW } from
. It's import WOW from
.
I have a similar problem. but this is in angular v18