Skip to content
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

How can I use graphql.tsx generated by graqphql-nexus? #231

Open
pruge opened this issue Dec 29, 2021 · 0 comments
Open

How can I use graphql.tsx generated by graqphql-nexus? #231

pruge opened this issue Dec 29, 2021 · 0 comments
Labels
question Further information is requested

Comments

@pruge
Copy link

pruge commented Dec 29, 2021

When using graphql.tsx created by grqphql-nexus, the following error occurs.
I had no problems using it with nextjs.
How can I solve the problem?

import {useRemoveAllPostMutation} from '@graphql/generated/graphql'

const [removeAllPostMutation, {data, loading, error}] = useRemoveAllPostMutation()
error - ../graphql_/generated/graphql.tsx
Module parse failed: Unexpected token (3:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import { gql } from '@apollo/client';
| import * as Apollo from '@apollo/client';
> export type Maybe<T> = T | null;
| export type InputMaybe<T> = Maybe<T>;
| export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
@saltyshiomix saltyshiomix added the question Further information is requested label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants