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

ReferenceError: name is not defined #633

Open
Grohden opened this issue Aug 5, 2022 · 0 comments
Open

ReferenceError: name is not defined #633

Grohden opened this issue Aug 5, 2022 · 0 comments

Comments

@Grohden
Copy link

Grohden commented Aug 5, 2022

I don't know why, but this name variable is not available for this function:

if (!raw.schema || !raw.documents || !raw.plugins)
printError(new Error(`A config requires a "${name}" field`));
const hasUnnecessaryPlugin = raw.plugins.some((p) => {
const name = typeof p === 'string' ? p : Object.keys(p)[0];
return name === 'typescript';
});

(maybe this is referring to the global dom name and ts accepts it?)
so the error report does not report the error

edit: some context

schema: "http://localhost:3000/graphql"
# documents: "app/javascript/**/*.gql" # commented this line, which is probably my issue
plugins:
  - typescript-operations
  - typescript-react-apollo

@Grohden Grohden changed the title ReferenceError: name is not defined ReferenceError: name is not defined ReferenceError: name is not defined Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant