Jump to content
Search Community

GSAP 3 (bonus.tgz) + Angular (5.2) gasp-utils build errors

treadway test
Moderator Tag

Recommended Posts

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

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. 

  • Like 2
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...