Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set property 'getPropertyValue' of undefined #352

Open
hcweb opened this issue Jul 2, 2021 · 14 comments
Open

Cannot set property 'getPropertyValue' of undefined #352

hcweb opened this issue Jul 2, 2021 · 14 comments

Comments

@hcweb
Copy link

hcweb commented Jul 2, 2021

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!

@sudongyuer
Copy link

I had the same problem

2 similar comments
@LUDA0831
Copy link

I had the same problem

@jetBn
Copy link

jetBn commented Sep 29, 2021

I had the same problem

@abadm
Copy link

abadm commented Nov 16, 2021

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";

@kingyue737
Copy link

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

@yanggengzhen123
Copy link

I had the same problem

@FZfanfan
Copy link

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

@veraLX
Copy link

veraLX commented May 17, 2022 via email

@wtt19980923
Copy link

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

@veraLX
Copy link

veraLX commented Jun 27, 2022 via email

@wtt19980923
Copy link

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

@veraLX
Copy link

veraLX commented Oct 11, 2022 via email

@movahhedi
Copy link

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.

@asroor
Copy link

asroor commented Jun 26, 2024

image image image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests