Keystone: Upgrade flow-bin

Created on 21 Oct 2019  ยท  4Comments  ยท  Source: keystonejs/keystone

Bug report

Describe the bug

Upgrading to flow-bin 0.92.0 causes it to find new errors in CI.

We want to upgrade flow-bin so we need to find and fix these errors. This probably involves changes to come of the components in the AdminUI.

Additional context

packages/arch/packages/day-picker/src/DayPicker/index.js:242:10

Cannot instantiate React ref because class List [1] is incompatible with string [2] in type argument ElementType.

     packages/arch/packages/day-picker/src/DayPicker/index.js
     239โ”‚       </Header>
     240โ”‚       <div>
     241โ”‚         {weekLabels}
     242โ”‚         <List
     243โ”‚           ref={listRef}
     244โ”‚           itemSize={useCallback(
     245โ”‚             index => {
     246โ”‚               const { weeks } = items[index];
     247โ”‚               return weeks.length * DAY_HEIGHT + 26.5;
     248โ”‚             },
     249โ”‚             [items]
     250โ”‚           )}
     251โ”‚           itemData={useMemo(
     252โ”‚             () => ({
     253โ”‚               items,
     254โ”‚               selectedDate,
     255โ”‚               onSelectedChange,
     256โ”‚               observer,
     257โ”‚             }),
     258โ”‚             [items, selectedDate, onSelectedChange, observer]
     259โ”‚           )}
     260โ”‚           height={6 * DAY_HEIGHT + 26.5}
     261โ”‚           itemCount={years.length * 12}
     262โ”‚           width="100%"
     263โ”‚         >
     264โ”‚           {Month}
     265โ”‚         </List>
     266โ”‚       </div>
     267โ”‚     </Wrapper>
     268โ”‚   );
bug good first issue maintenance

All 4 comments

Possibly move away from flow and use TypeScript with jsdoc if dont want to migrate to .ts files.

New errors on upgrading flow it's ok, this is done to simplify static typing adoption.
@MadeByMike I can do the upgrade, should I upgrade to 0.92.0 or to a newest version 0.109.0?

Possibly move away from flow and use TypeScript with jsdoc if dont want to migrate to .ts files.

Not helpful @gautamsi ;)

@w01fgang if you want to tackle this go for the latest version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gautamsi picture gautamsi  ยท  14Comments

bpavot picture bpavot  ยท  11Comments

wesbos picture wesbos  ยท  16Comments

cowjen01 picture cowjen01  ยท  13Comments

JedWatson picture JedWatson  ยท  17Comments