Object(...) is not a function graphql code example Example: gql TypeError: Object(...) is not a function import gql from 'graphql-tag'; // then use it normally