es7 Features

 A bit confused regarding webstorm support for es7 features like async/await and decorators. Selecting ECMAScript 6 for the javascript language does not appear to support async/await. I get the red squiggly errors in the IDE. However, the tracker seems to indicate there is support for these features(status==fixed).

 

There is also a javascript next plugin that one can install that supposedly supports es7 experimental features. But it doesn't work either. 

 

I usually don't resort to community forums to resolve issues but on this one there is precious little info out there. Google searches,help files, stackoverflow basically turns up one comment that the features are supported with a link to the tracker.

4 comments
Comment actions Permalink

ES7 async/await and decorators are supported with 'ECMAScript 6' language version. Does your code compile? Babel reports errors on await unless it's used inside a function marked with async...

0
Comment actions Permalink

The code transpiles fine. I don't use Webstorm for build processes. I use the command line for that. This is purely a matter of syntactical support for es7 features within the IDE. Ultimately, lack of syntax support is an irritation, not a show stopper because Webstorm reporting errors in the IDE does not effect transpilation. But it makes the dev experience less than ideal. The question then is there an additional step I have to take to get es7 syntax support apart from merely selecting ECMAScript 6 as the javascript language?

0
Comment actions Permalink

>The question then is there an additional step I have to take to get es7 syntax support apart from merely selecting ECMAScript 6 as the javascript language?

 

It should be enough, no additional steps required. Can you attach a file I can use to recreate the issue? And, BTW, what WebStorm version do you use?

0
Comment actions Permalink

the latest build...however, I believe I have now rectified the issue. Thanks, anyway.

0

Please sign in to leave a comment.