不变违规:29 on react apollo graphql

Invariant Violation: 29 on react apollo grapql

这个错误是什么意思? 不变违规:29(请参阅 https://github.com/apollographql/invariant-packages 我的代码中是否遗漏了触发此错误的某些内容?有谁知道这个错误是什么意思?我在尝试将 LocationSearch 组件导入到我的 index.js

时遇到了这个错误
import { LocationSearch } from '../component/LocationSearch';

<LocationSearch
   freeSolo
   withIcon={false}
/>

../component/LocationSearch.js

import { GETSTUDENTLOCATION } from '../../utils/location.gql';
const propTypes = {
   withIcon: PropTypes.bool,
}
const defaultProps = {
   withIcon: true,
}
const LocationSearch = ({
   withIcon,
})=>{
  const [getStudentLocations] = useQuery(GETSTUDENTLOCATION);

  const onChangeHandler = (e, value) => {
    onChange(value);
    const { valid, error } = isValid(value);
    if (!valid) {
      onError(error, value);
    }

    setOpen(false);
    setOptions([]);
  };

  const onInputChangeHandler = (e, inputString, reason) => {
      setKeyUpTimeOut(
        setTimeout(async () => {
          setLoading(true);
          const { data: searchLocation } = await getLocations({
            variables: {
              placeSearch: {
                address: inputString,
              },
            },
          });
          setLoading(false);
          setOptions(searchLocation.findLocationByAddress || []);
          setOpen(true);
        }, 500)
      );
  };


<Autocomplete
    onChange={onChangeHandler}
    onClose={onClose}
    onInputChange={onInputChangeHandler}
    open={open}
    options={uniqBy(
       multiple
       ? [...options, ...value]
       : value
       ? [...options, value]
       : options,
       'name'
    )}
/>
}

../../utils/location.gql

export const GETSTUDENTLOCATION = gql`
  query SearchStudentLocation($placeSearch: Location!) {
    searchstudentlocation(placeSearch: $placeSearch) {
      student_name
      address {
        street1
        street2
        city
        barangay
        houseNumber
        port
      }
      remarks
    }
  }
`;

我想是因为你的 apollo-client

的版本