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

What version of typescript does this gem compile with? #28

Open
amritk opened this issue Jun 19, 2015 · 4 comments
Open

What version of typescript does this gem compile with? #28

amritk opened this issue Jun 19, 2015 · 4 comments

Comments

@amritk
Copy link

amritk commented Jun 19, 2015

If I include jquery.d.ts I get a tonne of unexpected errors:

/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(279,59): error TS1005: ',' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(279,73): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(279,76): error TS1003: Identifier expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(298,41): error TS1005: ',' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(298,63): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(298,117): error TS1005: '>' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(298,139): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(298,147): error TS1003: Identifier expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(315,56): error TS1005: ',' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(315,78): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(315,140): error TS1005: '>' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(315,162): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(315,170): error TS1003: Identifier expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(322,50): error TS1005: ',' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(322,72): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(322,127): error TS1005: '>' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(322,149): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(322,155): error TS1003: Identifier expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(329,52): error TS1005: ',' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(329,74): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(329,134): error TS1005: '>' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(329,156): error TS1005: '=' expected.
/Users/amrit/apps/rebuild/app/assets/definitions/typings/jquery/jquery.d.ts(329,164): error TS1003: Identifier expected.

according to this SO post it means the typescript version is outdated. I am currently using message TS6029: Version 1.5.0-beta and compiling with tsc works fine.

It also blows up when using let

let script : HTMLScriptElement = document.createElement('script');

where var works fine

var script : HTMLScriptElement = document.createElement('script');

Which makes me think this gem is using an older version of typescript, or mine is pointing to the wrong one.

@lucacox
Copy link

lucacox commented Jun 28, 2015

same error here, version of tsc is message TS6029: Version 1.5.0-beta definitions installed via TSD.

Compiling jquery.d.ts directly gives no error.

I have similar errors on file angular.d.ts too.

@jakoss
Copy link

jakoss commented Jun 29, 2015

I've found possible solution for our problems. Repository `typescript-ruby-src' that uses local TS node module instead of internal one. It's only pull request since original author seems to abandon repo.

typescript-ruby/typescript-src-ruby#6

@amritk
Copy link
Author

amritk commented Jun 29, 2015

You can also check out

typescript-ruby/typescript-node-ruby#5

@bdrazhzhov
Copy link
Member

It's updated to v1.6.2. Try it now please.

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

4 participants