Open mengxianglong123 opened 11 months ago
Yes, Vue also has this problem。
Hello,我是林昕,我已收到来信~
I seem to know why this is happening. When installing dependencies, some will install wow.js, while others will install wowjs. That's where my problem lies. It should be installing wow.js
I use vite5+vue2.7, The following is my solution
Remove the import in the JS code
// import 'wowjs/css/libs/animate.css'
// import { WOW } from 'wowjs'
use cdn url script/link
<script src="
https://cdn.jsdelivr.net/npm/wowjs@1.1.3/dist/wow.min.js
"></script>
<link href="
https://cdn.jsdelivr.net/npm/wowjs@1.1.3/css/libs/animate.min.css
" rel="stylesheet">
Hello,我是林昕,我已收到来信~
Hello,我是林昕,我已收到来信~