Snack not using Typescript 4 or latest version of Typescript
- Dominant language
- TypeScript
- Stars
- 510
- Forks
- 178
- Avg merge
- 5h 7m
- Merged PRs (30d)
- 5
Description
### Summary
I have this snack code for my lib: https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox
And there are Typescript errors for like [Labeled Tuples](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements), a feature from TS4 and that my lib uses. So, the .ts/.tsx interpreter isn't Typescript >= 4.0.0.
I can't install in the deps there the for example "typescript": 4.4.3, it will be loading for ever its installation.
### What platform(s) does this occur on?
Web
### SDK Version
42
### Reproducible demo or steps to reproduce from a blank project
Access https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox and see the errors, in like `range={[0, 200]}`, as it's defined as a Labeled Tuple in the library.
Contributor guide
Research direction
Start by opening the linked Snack reproduction and checking how its web TypeScript interpreter and dependencies are configured for SDK 42. Reproduce the labeled-tuple errors around `range={[0, 200]}`, then verify that the configured TypeScript version accepts the library and that installing the required dependency no longer hangs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100