This commit is not in version 4.0.4
I get issues
ERROR in [at-loader] ./src/app/components/Header/index.tsx:9:11
TS2605: JSX element type 'Link' is not a constructor function for JSX elements.
Types of property 'setState' are incompatible.
Type '{
Types of parameters 'f' and 'f' are incompatible.
Types of parameters 'prevState' and 'prevState' are incompatible.
Type 'void' is not assignable to type '{}'.
ERROR in [at-loader] ./src/app/components/Header/index.tsx:10:11
TS2605: JSX element type 'Link' is not a constructor function for JSX elements.
Related to #17405.
Was fixed with 4.0.5 release
Thanks!
+1 fixed in 4.0.5:
npm install -D @typings/[email protected]
I am still seeing this with 4.0.5:
Error:(70, 22) TS2605:JSX element type 'Redirect' is not a constructor function for JSX elements.
Types of property 'setState' are incompatible.
Type '{ <K extends never>(f: (prevState: void, props: RedirectProps) => Pick<void, K>, callback?: (() =...' is not assignable to type '{ <K extends never>(f: (prevState: {}, props: any) => Pick<{}, K>, callback?: (() => any) | undef...'.
Types of parameters 'f' and 'f' are incompatible.
Type '(prevState: {}, props: any) => Pick<{}, any>' is not assignable to type '(prevState: void, props: RedirectProps) => Pick<void, any>'.
Types of parameters 'prevState' and 'prevState' are incompatible.
Type 'void' is not assignable to type '{}'.
this should probably be closed?
Yep, just close this and delete react-router from this the repository, this typings just break everything
Is this issue fixed? I've tried different versions of this definition and am still seeing TS2605:JSX element type 'Redirect/Route/BrowserRouter' is not a constructor function for JSX elements.
Remove @types/react-router-dom works for me....
Most helpful comment
I am still seeing this with 4.0.5: