The value returned from the get function is not of type query.
If the component name is specified as a return type, its possible that a definition file for the component cannot be found or is not accessible.