question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flow 0.68.0 compatibility

See original GitHub issue

Flow 0.68 added some changes that introduce some new errors:

$> yarn flow
yarn run v1.5.1
$ /Users/stevehollaar/graphql-js/node_modules/.bin/flow
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/error/locatedError.js:25:38

Property path is missing in Error [1].

 [1] 19│   originalError: Error,
     20│   nodes: $ReadOnlyArray<ASTNode>,
     21│   path: $ReadOnlyArray<string | number>,
     22│ ): GraphQLError {
     23│   // Note: this uses a brand-check to support GraphQL errors originating from
     24│   // other contexts.
     25│   if (originalError && Array.isArray(originalError.path)) {
     26│     return (originalError: any);
     27│   }
     28│


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/subscription/mapAsyncIterator.js:25:14

Property return is missing in $AsyncIterator [1].

     src/subscription/mapAsyncIterator.js
      22│   const iterator = getAsyncIterator(iterable);
      23│   let $return;
      24│   let abruptClose;
      25│   if (typeof iterator.return === 'function') {
      26│     $return = iterator.return;
      27│     abruptClose = error => {
      28│       const rethrow = () => Promise.reject(error);

     node_modules/iterall/index.js.flow
 [1] 506│   & (<+TValue>(asyncIterable: AsyncIterable<TValue>) => AsyncIterator<TValue>)


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/subscription/mapAsyncIterator.js:59:18

Property throw is missing in $AsyncIterator [1].

     src/subscription/mapAsyncIterator.js
      56│         : Promise.resolve({ value: undefined, done: true });
      57│     },
      58│     throw(error) {
      59│       if (typeof iterator.throw === 'function') {
      60│         return iterator.throw(error).then(mapResult, mapReject);
      61│       }
      62│       return Promise.reject(error).catch(abruptClose);

     node_modules/iterall/index.js.flow
 [1] 506│   & (<+TValue>(asyncIterable: AsyncIterable<TValue>) => AsyncIterator<TValue>)



Found 3 errors

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
protodanielcommented, Apr 11, 2018

I see, for some reason I was missing this line in the [options] of my .flowconfig suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe

I also saw that the fix is just to tell Flow to shut up 😉

Thanks for the help!

2reactions
kassenscommented, Mar 16, 2018

I just published 0.13.2 with #1290 merged which should fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FLOW version compatibility table - DataFromSky
Download the right version of FLOW running on your device for free. ... we have prepared a compatibility table for you to clarify...
Read more >
New Architecture with version 0.68.0 by React Native Team
Recently, the team launched a new React Architecture, version 0.68.0 that enables developers to create highly effective and responsive apps.
Read more >
A more responsive Flow - Medium
When editing Flow code in an IDE, users expect features like autocompletion and jump-to-definition to work. However, the Flow support for ...
Read more >
Introducing Fabric to react-native-screens - Software Mansion
It is not only the first Fabric-compatible version of this very popular project ... React Native CLI: npx react-native init NewRN68App --version 0.68.0-rc.1 ......
Read more >
Release Notes - FastAPI
Fix typo in docs about contributing, for compatibility with pip in Zsh. PR #5523 ... to include fixes for flavors of authorization code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found