WOW icon indicating copy to clipboard operation
WOW copied to clipboard

Cannot set property 'getPropertyValue' of undefined

Open hcweb opened this issue 3 years ago • 14 comments

I use wowjs in vue3, but I keep reporting errors. QQ截图20210702162044 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!

hcweb avatar Jul 02 '21 08:07 hcweb

I had the same problem

sudongyuer avatar Aug 15 '21 09:08 sudongyuer

I had the same problem

LUDA0831 avatar Sep 14 '21 09:09 LUDA0831

I had the same problem

jetBn avatar Sep 29 '21 02:09 jetBn

I use wowjs in vue3, but I keep reporting errors. QQ截图20210702162044 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";

abadm avatar Nov 16 '21 02:11 abadm

I had the same problem when built in modern mode in a nuxt2 project.

kingyue737 avatar Feb 06 '22 11:02 kingyue737

I had the same problem

yanggengzhen123 avatar Apr 10 '22 12:04 yanggengzhen123

我也有同样的问题 打包部署到服务器上就出现这个问题了

FZfanfan avatar May 17 '22 11:05 FZfanfan

Hello,我是林昕,我已收到来信~

veraLX avatar May 17 '22 11:05 veraLX

I have installed wow.js for vue3 but i also have the same problem . "wow.js": "^1.2.2"

wtt19980923 avatar Jun 27 '22 01:06 wtt19980923

Hello,我是林昕,我已收到来信~

veraLX avatar Jun 27 '22 01:06 veraLX

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() })

wtt19980923 avatar Jun 27 '22 02:06 wtt19980923

Hello,我是林昕,我已收到来信~

veraLX avatar Oct 11 '22 09:10 veraLX

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.

movahhedi avatar Apr 28 '23 13:04 movahhedi

image image image

I have a similar problem. but this is in angular v18

asroor avatar Jun 26 '24 14:06 asroor