'expression expected' error on flow annotations
Webstorm can't properly parse some flow annotations when the javascript version is set to flow.
The code:
// @flow
export const x = ['a', 'b'].map<*>(letter => ({ letter }));
triggers an "expression expected" error under the star. This is valid flow annotated javascript but isn't understood by webstorm. How do I resolve this error?
Please sign in to leave a comment.
Works fine for me:
what IDE version do you work with? did you try invalidating caches?
That was the problem, updating it to WebStorm 2018.3 worked. Thanks!