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

flow check error #24

Open
devniel opened this issue Jul 13, 2021 · 1 comment
Open

flow check error #24

devniel opened this issue Jul 13, 2021 · 1 comment

Comments

@devniel
Copy link

devniel commented Jul 13, 2021

Hello,

With the latest version of the repo, there is an error with flow check, do you know what could be the problem ?. Thanks in advance.

Error ----------------------------------------------------------- node_modules/graphql/error/GraphQLError.js.flow:212:16

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   212| (GraphQLError: any).prototype = Object.create(Error.prototype, {
                       ^^^


Error ------------------------------------------------------------ node_modules/graphql/error/locatedError.js.flow:26:28

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   26|     return (originalError: any);
                                  ^^^


Error ------------------------------------------------------------ node_modules/graphql/error/locatedError.js.flow:31:39

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   31|     (originalError && (originalError: any).nodes) || nodes,
                                             ^^^


Error ------------------------------------------------------------ node_modules/graphql/error/locatedError.js.flow:32:38

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   32|     originalError && (originalError: any).source,
                                            ^^^


Error ------------------------------------------------------------ node_modules/graphql/error/locatedError.js.flow:33:38

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   33|     originalError && (originalError: any).positions,
                                            ^^^


Error ----------------------------------------------------- node_modules/graphql/jsutils/defineToStringTag.js.flow:23:61

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   23| export default function applyToStringTag(classObject: Class<any>): void {
                                                                   ^^^


Error ---------------------------------------------------------------- node_modules/graphql/language/lexer.js.flow:52:38

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   52|       token = token.next || ((token: any).next = readToken(this, token));
                                            ^^^


Error -------------------------------------------------------------- node_modules/graphql/language/parser.js.flow:198:27

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   198|     value: ((token.value: any): string),
                                  ^^^


Error -------------------------------------------------------------- node_modules/graphql/language/parser.js.flow:587:31

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   587|         value: ((token.value: any): string),
                                      ^^^


Error -------------------------------------------------------------- node_modules/graphql/language/parser.js.flow:594:31

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   594|         value: ((token.value: any): string),
                                      ^^^


Error -------------------------------------------------------------- node_modules/graphql/language/parser.js.flow:618:31

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   618|         value: ((token.value: any): string),
                                      ^^^


Error -------------------------------------------------------------- node_modules/graphql/language/parser.js.flow:635:27

Unclear type. Using `any`, `Object`, or `Function` types is not safe! (`unclear-type`)

   635|     value: ((token.value: any): string),
                                  ^^^



Found 12 errors
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@devniel
Copy link
Author

devniel commented Jul 14, 2021

It seems realted to the strict unclear-type rule in .flowconfig.

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