Definitelytyped: redux-form typing error TS2305 has no exported member 'ChangeEvent'

Created on 13 Apr 2017  ·  3Comments  ·  Source: DefinitelyTyped/DefinitelyTyped

While trying to utilize @types/redux-form I keep getting a typescript error from the Field.d.ts typing that ChangeEvent from react is not an exported member.

ERROR in c:\path-to-code\node_modules\@types\redux-form\lib\Field.d.ts (4,5): error TS2305: Module '"c:/path-to-code/node_modules/@types/react/index"' has no exported member 'ChangeEvent'.

I'm locked into using react 15.3.2 and tsc 2.2.1 and I'm not able to find any other mention of ChangeEvent related to react or redux-form.

@LKay

Most helpful comment

@jamespero outdated instance of what? I'm getting the same error

All 3 comments

This looks to have been caused by an outdated instance of @types/react

@jamespero outdated instance of what? I'm getting the same error

Nice, GitHub parsed @types/react as a team mention: <gh:team-mention org="types" team="react" />.

Was this page helpful?
0 / 5 - 0 ratings