Even Better Support for React in Flow
Caleb Meredith
5.8K16

Sorry, but flow-upgrade just gives me just a bunch of Transformation errors
All i’ve got for each of my flow files:

ERR /<…>.js Transformation error
TypeError: Converting circular structure to JSON
 at JSON.stringify (<anonymous>)
 at Object.getFieldNames (/Users/max/.config/yarn/global/node_modules/ast-types/lib/types.js:661:22)
 at visitChildren (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:221:32)
 at Visitor.PVp.visitWithoutReset (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:202:16)
 at visitChildren (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:244:21)
 at Visitor.PVp.visitWithoutReset (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:202:16)
 at Visitor.PVp.visit (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:131:25)
 at Object.visit (/Users/max/.config/yarn/global/node_modules/ast-types/lib/path-visitor.js:99:51)
 at root.paths.forEach.path (/Users/max/.config/yarn/global/node_modules/create-flow-upgrade/dist/upgrades/0.53.0/ReactUtilityTypes/codemod.js:32:12)
 at Array.forEach (native)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.