Open dagda1 opened 7 years ago
Can you please try v7.0.4? It has some updates for Flow. I still don't fully grasp it, so I can't tell if it's going to fix your issue 😕
The problem with 7.0.4 is that uses new React type definitions
where is redux-form getting its react type definitions from? Which version of react
with 7.0.4 we get these errors:
100: declare export var Field: React.ComponentType<FieldInputProps>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ComponentType. Property not found in
2: import * as React from 'react'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ exports of "react"
With React 15.6.1 anyway
7.0.3 to 7.0.4 had a major react version increase which was surprising
On Mon, 16 Oct 2017 at 03:29, Gustavo Henke notifications@github.com wrote:
Hi @dagda1 https://github.com/dagda1, do you still see these errors with newer versions of redux-form? You may want to check the changelogs for v7.1.0 https://github.com/erikras/redux-form/releases/tag/v7.1.0 and v7.1.1 https://github.com/erikras/redux-form/releases/tag/v7.1.1 as well.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/erikras/redux-form/issues/3444#issuecomment-336764373, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHOOFC7r_yokM0n8DyhVxGZyCyhE9cyks5ssr-BgaJpZM4Pf86E .
-- Cheers
Paul Cowan
Cutting-Edge Solutions (Scotland)
blog: http://thesoftwaresimpleton.com/ website: http://www.cuttingedgesolutionsscotland.com/
@dagda1 did you find a way to use newer versions of redux-form than 7.0.3 with React 15? Or do I have to update React to use the current flow types? React 15 is still listed in peer dependencies.
@ericstumper I've moved to typescript. I found flow unusable, maybe I'm missing something but I found it was really slow and buggy.
When I run yarn flow on 7.0.3, for the following line of code:
Looking at the type definition in redux-form, I see:
So My initialize looks correct, I do not understand why I am seeing these errors