-
Notifications
You must be signed in to change notification settings - Fork 145
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
"Decorators are only available when targeting ECMAScript 5 and higher" error on file save #47
Comments
I'm not sure but I think it is syntastic (or something else) that is giving you the error message when you save. This plugin does not do that, it only supports compiling via the |
Looking at the docs for syntastic, I think you could do something like this to configure it:
|
Perhaps all these typescript plugins (including this one) should look at supporting tsconfig.json |
@leafgarland, Thank you, it works! |
@leafgarland 👍 to the comment about |
👍 for syntastic option, that fixes my problem :) |
A better solution: You only have to set this in .vimrc: let g:syntastic_typescript_tsc_fname = '' |
I have an issue using typescript-vim with the typescript code containing decorators.
When I save file, I'm getting error:
error| TS1205: Decorators are only available when targeting ECMAScript 5 and higher.
I added
let g:typescript_compiler_options = '-t ES5 --module commonjs'
to my vimrc, but it does not help. When I run:make
it works fine fine without errors, however.Could you point me on what I'm missing?
P.S. I'm also using syntastic-async for pretty errors display.
Thanks!
The text was updated successfully, but these errors were encountered: