Jump to content
Search Community

Type errors since upgrading to GSAP 3.3.0 with bonus

crissxross test
Moderator Tag

Recommended Posts

Since installing GSAP 3.3.0 (via npm install ./gsap-bonus.tgz), I'm getting these errors although nothing has changed in my code:

 

ERROR in node_modules/gsap/types/motion-path-plugin.d.ts:237:12 - error TS2304: Cannot find name 'SVGPathValue'.

237     path?: SVGPathValue | TweenValue | Point2D[]| PathObject[];
               ~~~~~~~~~~~~
node_modules/gsap/types/motion-path-plugin.d.ts:237:27 - error TS2304: Cannot find name 'TweenValue'.

237     path?: SVGPathValue | TweenValue | Point2D[]| PathObject[];
                              ~~~~~~~~~~
node_modules/gsap/types/motion-path-plugin.d.ts:237:40 - error TS2304: Cannot find name 'Point2D'.

237     path?: SVGPathValue | TweenValue | Point2D[]| PathObject[];
                                           ~~~~~~~
node_modules/gsap/types/motion-path-plugin.d.ts:237:51 - error TS2304: Cannot find name 'PathObject'.

237     path?: SVGPathValue | TweenValue | Point2D[]| PathObject[];
                                                      ~~~~~~~~~~

 

Not sure what to do about it. Any advise?

Thanks

Link to comment
Share on other sites

Hey crissxross and welcome to the GreenSock forums! Thanks for supporting GreenSock by being a Club GreenSock member.

 

This has been brought up on GitHub and already fixed in the next version (to be released soon). You can fix it in your own file by switching that line out for this one:

path?: gsap.SVGPathValue | gsap.TweenValue | gsap.Point2D[]| gsap.PathObject[];

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...