Skip to content
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

Editor not at latest version of TypeScript #1485

Closed
1 task done
davidkpiano opened this issue Jul 11, 2024 · 3 comments
Closed
1 task done

Editor not at latest version of TypeScript #1485

davidkpiano opened this issue Jul 11, 2024 · 3 comments

Comments

@davidkpiano
Copy link

Describe the bug

The StackBlitz editor's TypeScript version has two problems (or maybe one problem, depending on perspective):

  • It lags behind the latest stable TypeScript version
  • It does not use the installed TypeScript version

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-faphes?file=src%2Fmain.ts,package.json&terminal=dev

Steps to reproduce

  1. Go to main.ts
  2. Observe the TypeScript errors

Expected behavior

There are no TypeScript errors, since the editor should be running on the latest stable version of TypeScript

Parity with Local

Screenshots

Screenshot 2024-07-11 at 9 38 40 AM

Platform

Browser name  = Chrome
Full version  = 125.0.0.0
Major version = 125
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 203022543,
  "usedJSHeapSize": 193694363,
  "jsHeapSizeLimit": 4294705152
}
Hash = 70dbe416

Additional context

No response

@SamVerschueren
Copy link
Contributor

Hey @davidkpiano 👋 ! Thanks for reaching out. This is now fixed and it is using the latest TypeScript 5.5.3.

@davidkpiano
Copy link
Author

Thank you! I'm still seeing the type error though: https://stackblitz.com/~/edit/vitejs-vite-faphes?file=src/main.ts:L30!,package.json&terminal=dev

CleanShot 2024-07-15 at 08 43 53@2x

@SamVerschueren
Copy link
Contributor

Oh gotcha. I noticed now that you are using Codeflow which uses 5.4.5 as the default. If you do > Select TypeScript version and pick Use workspace version, that should address the issue (at least it did that for me).

The version we now updated was on the classic editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants