You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using CSS prop with react-spring in Typescript causes "Type instantiation is excessively deep and possibly infinite" compilation error #3496
Referencing the css prop types from styled-components anywhere in a project causes a "Type instantiation is excessively deep and possibly infinite" compilation error when creating a react-spring animated component.
I have tried several of the different methods for refferencing the types for styled-components listed in this issue: DefinitelyTyped/DefinitelyTyped#31245 and all of them have the same error.
Also raised an issue for this in the react-spring repo as it's not clear from which library this needs to be fixed in. pmndrs/react-spring#1515
Note that the css prop doesn't have to be used anywhere for this issue to occur, it's only the type reference that's needed to conflict with react-spring.
Let's keep this to the definitely-typed repo for now, since we don't maintain the typings in here. In other words, nothing we would change or do here, can influence or faciliate the resolution of this issue 😅
The styled-components typings are currently actually not maintained in the mainline repository but are located in DefinitelyTyped. Hence, we unfortunately don't maintain them directly here, but they're maintained by different people, until we settle on whether we can release a Typescript rewrite with better typings baked in
Activity
kitten commentedon Aug 9, 2021
Let's keep this to the definitely-typed repo for now, since we don't maintain the typings in here. In other words, nothing we would change or do here, can influence or faciliate the resolution of this issue 😅
refactor(types): drop the duplicated recursive branch in Interpolation
feat(types): derive target props once per target, and merge a declare…