treadway Posted January 9, 2020 Share Posted January 9, 2020 hey y'all, I am getting errors from the gsap-utils during build after upgrade to GSAP 3 (latest version 3.05) ERROR in node_modules/gsap/types/gsap-utils.d.ts(98,76): error TS1144: '{' or ';' expected. node_modules/gsap/types/gsap-utils.d.ts(100,97): error TS1144: '{' or ';' expected. node_modules/gsap/types/gsap-utils.d.ts(101,120): error TS1144: '{' or ';' expected. Any ideas on why this may be happening and hopefully a fix? Link to comment Share on other sites More sharing options...
GreenSock Posted January 9, 2020 Share Posted January 9, 2020 Hm, that sounds like just a TypeScript thing, unrelated to the actual GSAP JavaScript files. @OSUblake is our resident expert on those, so hopefully he'll chime in soon. Please stand by. In the mean time, though, maybe you could tweak some settings in your project to ignore TypeScript definition errors? Link to comment Share on other sites More sharing options...
OSUblake Posted January 9, 2020 Share Posted January 9, 2020 I think the compiler is complaining about the conditional types, which is a feature that was added all the way back in version 2.8 (March 2018). https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html Try installing a newer version of TypeScript, to at least version 2.8. If you can't install a new version, then comment out random functions in the gsap-utitls.d.ts file. 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