Jump to content
Search Community

Bug in @gsap/react

Forcy test
Moderator Tag

Recommended Posts

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

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

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...