TTLuna Posted March 30, 2022 Share Posted March 30, 2022 Hello, I install gsap in my project, and get some "Observer" eslint erros like ERROR in /Users/test/node_modules/gsap/types/scroll-trigger.d.ts(301,75): 301:75 Cannot find name 'Observer'. 299 | * @link https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.normalizeScroll() 300 | */ > 301 | static normalizeScroll(enable?: boolean | ScrollTrigger.NormalizeVars | Observer): Observer | null; 302 | 303 | /** 304 | * Returns the Observer instance that is currently normalizing scroll behavior (if one exists). ERROR in /Users/test/node_modules/gsap/types/scroll-trigger.d.ts(301,86): 301:86 Cannot find name 'Observer'. 299 | * @link https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.normalizeScroll() 300 | */ > 301 | static normalizeScroll(enable?: boolean | ScrollTrigger.NormalizeVars | Observer): Observer | null; 302 | 303 | /** 304 | * Returns the Observer instance that is currently normalizing scroll behavior (if one exists). I have to add reference below to the file "/node_modules/gsap/types/index.d.ts" and the error is gone. /// <reference path="observer.d.ts"/> 1 Link to comment Share on other sites More sharing options...
GreenSock Posted March 30, 2022 Share Posted March 30, 2022 Thanks for letting us know, @TTLuna. We'll get that in the next release. 1 Link to comment Share on other sites More sharing options...
GreenSock Posted March 31, 2022 Share Posted March 31, 2022 Just so you know, we pushed a 3.10.1 patch that resolves this. ✅ 1 Link to comment Share on other sites More sharing options...
Grandpaw Broon Posted March 31, 2022 Share Posted March 31, 2022 Thanks for your quick update Jack, I can confirm it fixed 🤗 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