gql TypeError: Object(...) is not a function

JavaScript
import gql from 'graphql-tag';
// then use it normally
Source

Also in JavaScript: