expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
370 stars 110 forks source link

Snack not using Typescript 4 or latest version of Typescript #218

Open SrBrahma opened 3 years ago

SrBrahma commented 3 years ago

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, 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.

IjzerenHein commented 3 years ago

@SrBrahma Thanks for reporting this!

This appears related to the Monaco Editor, which needs to be upgraded. But we are currently blocked on this due and need to make additional upgrades to make that happen.

thomashagstrom commented 2 years ago

Are you blocked again? Because in 2022 Snack still doesn't seem to use TypeScript >= 4

danstepanov commented 2 years ago

@thomashagstrom I'll take a look at this this week :)

jeanniton-mnr commented 4 days ago

danstepanov

An eternity later but still nothing 🤔 ?