software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.71k stars 1.27k forks source link

[3.8.1] Typescript - Error: Debug Failure. False expression: Should only get Alias here. #5802

Open fadiquader opened 4 months ago

fadiquader commented 4 months ago

Description

I was on 3.6.1 version and then I bumped to 3.8.1. I get this error when I run yarn tsc --noEmit image

Deps: Typescript: 5.1.6 NodeJs: v18.17.1

Steps to reproduce

  1. run yarn tsc --noEmit
  2. it fails as you can see in the screenshot above.

Snack or a link to a repository

N/A

Reanimated version

3.6.1

React Native version

0.72.9

Platforms

iOS, macOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

None

Device

None

Device model

N/A

Acknowledgements

Yes

github-actions[bot] commented 4 months ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?