Giter Club home page Giter Club logo

Comments (14)

abadm avatar abadm commented on July 17, 2024 6

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

from wow.

asroor avatar asroor commented on July 17, 2024 1
image image image

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

from wow.

sudongyuer avatar sudongyuer commented on July 17, 2024

I had the same problem

from wow.

LUDA0831 avatar LUDA0831 commented on July 17, 2024

I had the same problem

from wow.

jetBn avatar jetBn commented on July 17, 2024

I had the same problem

from wow.

kingyue737 avatar kingyue737 commented on July 17, 2024

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

from wow.

yanggengzhen123 avatar yanggengzhen123 commented on July 17, 2024

I had the same problem

from wow.

FZfanfan avatar FZfanfan commented on July 17, 2024

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

from wow.

veraLX avatar veraLX commented on July 17, 2024

from wow.

wtt19980923 avatar wtt19980923 commented on July 17, 2024

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

from wow.

veraLX avatar veraLX commented on July 17, 2024

from wow.

wtt19980923 avatar wtt19980923 commented on July 17, 2024

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

from wow.

veraLX avatar veraLX commented on July 17, 2024

from wow.

movahhedi avatar movahhedi commented on July 17, 2024

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.

from wow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.