Charles Lavalard Posted June 21, 2021 Share Posted June 21, 2021 I'm working on a Nuxt project and i'm using Gsap library via the yarn / gsap-bonus.tgz method I can use other plugins like MorphSVG, etc.. but but i try using Flip i get This dependency was not found: * gsap/Flip in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./components/TheHeader.vue?vue&type=script&lang=js& To install it, you can run: npm install --save gsap/Flip So I tried removing the .tgz and the package and reinstalling ityarn remove gsap rm -rf ./gsap-bonus.tgz & I redownloaded the .zip from https://greensock.com/docs/v3/Installation?checked=core,flip#ZIP Reinstalled Ityarn add ./gsap-bonus.tgz But when i check my module I don't see the Flip.js and I still see the error above Is there anything I did wrong ? Link to comment Share on other sites More sharing options...
OSUblake Posted June 21, 2021 Share Posted June 21, 2021 Hi Charles! What version is that? It should be inside the package.json. Link to comment Share on other sites More sharing options...
Charles Lavalard Posted June 21, 2021 Author Share Posted June 21, 2021 I don't know in my package.json i have"gsap": "./gsap-bonus.tgz" But I downloaded the 3.7.0 Link to comment Share on other sites More sharing options...
OSUblake Posted June 21, 2021 Share Posted June 21, 2021 What does it say in here? Link to comment Share on other sites More sharing options...
Charles Lavalard Posted June 21, 2021 Author Share Posted June 21, 2021 Oh ! I feel dumb 😅"version": "3.6.1" Link to comment Share on other sites More sharing options...
OSUblake Posted June 21, 2021 Share Posted June 21, 2021 That version should have Flip, but your screen shows some other files missing too. I would try deleting your node_modules folder, remove your tgz, and remove "gsap": "./gsap-bonus.tgz" from your package.json and start again. Link to comment Share on other sites More sharing options...
GreenSock Posted June 21, 2021 Share Posted June 21, 2021 It sure looks like you have an old file from when you were "Simply Green" (before you upgraded to "Shockingly Green"). I just tested by logging into your account and downloading the zip and it definitely has the correct files in there including Flip. Maybe clear your cache and try logging in and downloading again? Link to comment Share on other sites More sharing options...
Charles Lavalard Posted June 21, 2021 Author Share Posted June 21, 2021 I might be doing something wrong i removed every thing you said And reinstall it But i still get the 3.6.1 Version I tried unzipping my .tgz and i see the Flip.js file but in my node module i don't I also remove my cache and redownload my .zip file Link to comment Share on other sites More sharing options...
OSUblake Posted June 21, 2021 Share Posted June 21, 2021 What are you using to install, npm, yarn, etc? Something is definitely being cached with your setup, just not sure where. Link to comment Share on other sites More sharing options...
Charles Lavalard Posted June 21, 2021 Author Share Posted June 21, 2021 I'm using Yarn I'm using yarn add ./gsap-bonus.tgz to install it Link to comment Share on other sites More sharing options...
Solution OSUblake Posted June 21, 2021 Solution Share Posted June 21, 2021 Yarn keeps a cache for faster install. You should look into cleaning it. v1 https://classic.yarnpkg.com/en/docs/cli/cache/ v2 https://yarnpkg.com/cli/cache/clean 3 Link to comment Share on other sites More sharing options...
Charles Lavalard Posted June 21, 2021 Author Share Posted June 21, 2021 It was it! Works like a Charm Thank you so much ! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now