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

TypeError: typeInfo.enter is not a function #332

Open
glensc opened this issue Oct 13, 2023 · 1 comment
Open

TypeError: typeInfo.enter is not a function #332

glensc opened this issue Oct 13, 2023 · 1 comment

Comments

@glensc
Copy link

glensc commented Oct 13, 2023

➜ yarn graphql-schema-linter --comment-descriptions
yarn run v1.22.19
$ ./node_modules/.bin/graphql-schema-linter --comment-descriptions
It looks like you may have hit a bug in graphql-schema-linter.

It would be super helpful if you could report this here: https://github.com/cjoudrey/graphql-schema-linter/issues/new

TypeError: typeInfo.enter is not a function
    at Object.enter (./node_modules/graphql/language/visitor.js:369:16)
    at visit (./node_modules/graphql/language/visitor.js:242:26)
    at validate (./node_modules/graphql/validation/validate.js:73:24)
    at validateSchemaDefinition (./node_modules/graphql-schema-linter/lib/validator.js:76:43)
    at run (./node_modules/graphql-schema-linter/lib/runner.js:68:58)
error Command failed with exit code 3.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ cat .graphql-schema-linterrc
{
  "rules": [
    "defined-types-are-used",
    "deprecations-have-a-reason",
    "enum-values-have-descriptions",
    "fields-have-descriptions",
    "input-object-values-have-descriptions",
    "types-are-capitalized",
    "types-have-descriptions"
  ],
  "schemaPaths": [
    "schemas/*.graphql"
  ]
}
✖ cat schemas/query.graphql
type IpLookup {
  country: String!
  ip: String!
}

type Query {
  lookup(
    ip: String!
  ): IpLookup
}

I was updating my dependency:

-    "graphql-schema-linter": "^0.5.0",
+    "graphql-schema-linter": "^3.0.1",
@schneider10
Copy link

Is this package no longer maintained?

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

2 participants