-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typeerror: _apollo_client__webpack_imported_module_0__.gql is not a function #9356
Comments
I'm getting the same error as well.
|
Thanks @raopg - i have seen this elsewhere but doesn't work for me, this yields a Does anyone know what causes this issue? Might help me work around it. Seems strange that the import from |
i am also getting this issue from earlier and i change the version of apollo client to 3.2.4 it works now again i am getting this issue |
We ended up locking Apollo version to 3.4.16 and things are working. |
This may be a webpack misconfiguration. I ran into this issue with create-react-app, since its webpack config doesn't correctly handle |
Hello, 👋🏼 I am currently working on a React Native Expo project and I hit the
This indeed fixed the
anyone else hitting this error? Update:It looks like having a root folder named |
Intended outcome:
Using
useQuery
andgql
results in a query being sent to GraphQL.Actual outcome:
Compiler throws an error complaining that
typeerror: _apollo_client__webpack_imported_module_0__.gql is not a function
The line in question in the below example is:
const { loading, error, data } = useGraphQLQuery(EXCHANGE_RATES);
How to reproduce the issue:
App.tsx
Thread.tsx
Versions
package.json
The text was updated successfully, but these errors were encountered: