Forcy Posted January 15 Share Posted January 15 Hello everyone. I have used gsap and @gsap/react for my new website Using React TS. When trying to build my app. I got the error 7. /// <reference path="../node_modules/gsap/types/index.d.ts"/> After changing the file @gsap/react/types/index.d.ts in node_modules to: /// <reference path="../../../../node_modules/gsap/types/index.d.ts"/> It works fine. It works fine. Hope you will fix the issue soon. Best Regards Feras Link to comment Share on other sites More sharing options...
GreenSock Posted January 15 Share Posted January 15 Welcome to the forums, @Forcy. Hm, would you mind replacing that /// <reference/> line with this?: import { gsap } from "gsap"; I'm not a TypeScript expert, but I think that should work. Please confirm that works in your environment. If not, perhaps this: /// <reference path="../../gsap/types/index.d.ts"/> Link to comment Share on other sites More sharing options...
GreenSock Posted January 19 Share Posted January 19 This should be resolved in the latest release. ✅ 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