Commands such as /give, /recipe, and /ban can only affect players, so using an @e selector is invalid and will yield a syntax error unless it contains a type=player parameter.
However they are suggested by the autocompletion. See the attached screenshot.