Skip to content

"Decorators are only available when targeting ECMAScript 5 and higher" error on file save #47

@yyyar

Description

@yyyar

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.

decorator

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions