greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.85k stars 1.72k forks source link

TweenLite branch broken #371

Closed juvabien closed 4 years ago

juvabien commented 4 years ago

Hello,

I am using a html theme that uses TweenLite.min.js and which is used in the 2.1.3 branch. This branch is no longer accessible with npm install TweenLite

Can you deliver version 2?

thank you

ZachSaucier commented 4 years ago

Hey juvabien.

You should be able to install version 2.1.3 of GSAP by using npm install gsap@2.1.3

juvabien commented 4 years ago

not better here is output error

npm install --save gsap@2.1.3

This dependency was not found:

To install it, you can run: npm install --save TweenLite

This relative module was not found:

Thank you

ZachSaucier commented 4 years ago

I'm guessing it installed correctly but your project is giving you that error?

Looks like something is wrong with your importing or configuration. It should be pointing to /node-modules/gsap/TweenLite.js.

How are you trying to import TweenLite? We recommend using import TweenLite from 'gsap/TweenLite'

Please see the modules install video for how to install and import GSAP using modules and see the install page for more information.

jackdoyle commented 4 years ago

Yeah, it sounds like something is wrong on your end. And this looks very odd to me: "npm install --save TweenLite" because I don't think there's such a package.

juvabien commented 4 years ago

Absolutely, your scripts are included in the LivIconsEvo.tools.js file.

I use yarn encore dev command (under Symfony) to install all assets. npm try to resolve the dependances although they are already included.

I think it is not possible to tell yarn and npm to exclude or ignore your scripts already included

Here is the header of LivIconsEvo.tools.js file in which there is the inclusion of the TweenLite script :

/**** @name: LivIconsEvo.tools.js - the third party libraries for LivIcons (Live Icons) Evolution @version: 2.8.XXX (XXX is a total number of icons) @URL: https://livicons.com Content: Snap.svg 0.5.1 GreenSock TweenMax 2.1.2 GreenSock DrawSVGPlugin 0.2.1 GreenSock MorphSVGPlugin 0.8.11 verge 1.10.2+201705300050

@licenses: see details in the comments for each library *****/

ZachSaucier commented 4 years ago

Based on LivIconsEvo's docs, it looks like the path that it's reporting is wrong. You should be able to find TweenMax under LivIconsEvo/js/tools/TweenMax.min.js.

It's possible that the documentation is outdated or there is a separate modules-based file structure. Please ask the creators of that plugin for future direction/help.

Given this is unrelated to GSAP we'll likely close this issue.

juvabien commented 4 years ago

thank you Zach for your recommendations ;)