-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.0.0-beta.1: Incompatible types/"Type […] is not assignable" #653
Labels
kind: bug
Something isn't working
Comments
I'm getting the same error. |
This will be fixed in the next beta today |
Please try with the newest beta 👍 |
hsunpei
added a commit
to iCHEF/transcharts
that referenced
this issue
Apr 29, 2019
@pbock That error is fixed in v9.0.0-beta.4 |
@aleclarson Issue is still present in |
3 tasks
cameron-martin
pushed a commit
to cameron-martin/react-spring
that referenced
this issue
May 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
There appears to be a bug in the TypeScript typings for version 9.0.0-beta.1 that causes the type coming out of
useSpring()
to be incompatible with what<animated.…>
expects, throwing errors such as:To Reproduce
Steps to reproduce the behavior:
Save this example (very slightly adapted from the documentation) as
src/index.tsx
:Compile it (
tsc src/index.tsx --jsx react --strict
).Although the code runs as expected, an error (see above) is thrown.
A similar error occurs with value.interpolate():
Expected behavior
The code should compile without any errors.
Link to repro (highly encouraged)
CodeSandbox demo – but irritatingly, the error only appears locally (after exporting to ZIP), not in the online demo 😕
Environment
react-spring
v9.0.0-beta.1react
v16.8.6The text was updated successfully, but these errors were encountered: