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

Error raised while using inline linter configuration #335

Open
vykulakov opened this issue Oct 1, 2024 · 1 comment
Open

Error raised while using inline linter configuration #335

vykulakov opened this issue Oct 1, 2024 · 1 comment

Comments

@vykulakov
Copy link

Code sample:

type Invoice @goModel(model: "package.Invoice"){
    id: UUID!
    number: Int! # lint-disable
}

Error stack trace:

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: Cannot read properties of undefined (reading 'split')
    at parseRulesArg (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/inline_configuration.js:55:16)
    at parseInlineComment (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/inline_configuration.js:41:16)
    at extractInlineConfigs (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/inline_configuration.js:18:27)
    at inlineConfigErrorFilter (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/validator.js:100:72)
    at validateSchemaDefinition (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/validator.js:78:25)
    at run (/usr/local/lib/nodejs/node-v16.19.0-linux-x64/lib/node_modules/graphql-schema-linter/lib/runner.js:68:58)
@vykulakov
Copy link
Author

Seems like a haven't passed any rule name to the directive in the inline configuration.

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