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

Cannot find Global Objects like Array, Object in TypeScript File #641

Closed
bunnyvishal6 opened this issue May 3, 2019 · 4 comments · Fixed by #857
Closed

Cannot find Global Objects like Array, Object in TypeScript File #641

bunnyvishal6 opened this issue May 3, 2019 · 4 comments · Fixed by #857
Labels
bug Something isn't working

Comments

@bunnyvishal6
Copy link

  • code-server version: 1.939-vsc1.33.1
  • OS Version: Ubuntu 18.04 lts

Description

Steps to Reproduce

  1. In a typescript file ide showing it cannot find Array, Object etc global objects

image

@bunnyvishal6 bunnyvishal6 added the bug Something isn't working label May 3, 2019
@bunnyvishal6 bunnyvishal6 changed the title Cannot find JavaScript global objects in TypeScript Cannot find JavaScript global objects in TypeScript File May 3, 2019
@bunnyvishal6 bunnyvishal6 changed the title Cannot find JavaScript global objects in TypeScript File Cannot find Global Objects like Array, Object in TypeScript File May 3, 2019
@LucasLeeDotNet
Copy link

Confirm I have the same issue

@josephRice
Copy link

Can confirm the issue, as it affects me as well. Windows 10 WSL (sshcode) -> Ubuntu back end on an Angular/typescript project

@josephRice
Copy link

Bumping down the typescript version to 3.3.3333 work around the issue for me. However there still may be an issue with the code-server language files as I have 3.4.3 and 3.3.3333 installed by VSCode.

for reference how to workaround this see

https://stackoverflow.com/questions/53275853/visual-studio-code-showing-error-cant-find-name-date

@geiseri
Copy link
Contributor

geiseri commented May 10, 2019

I found that I needed to set my typescript version to the workspace version, then it started working properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants