Skip to content
This repository has been archived by the owner on Jul 1, 2018. It is now read-only.

rocka/reproduce-inferno-1355

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reproduce for inferno#1355

  1. clone this repo

  2. npm install

  3. node_modules/.bin/tsc or node_modules/.bin/webpack

src/index.tsx:19:33 - error TS2326: Types of property 'component' are incompatible.
  Type 'typeof Compo' is not assignable to type 'ComponentClass<RouteComponentProps<any>> | StatelessComponent<RouteComponentProps<any>> | Compone...'.
    Type 'typeof Compo' is not assignable to type 'StatelessComponent<any>'.
      Types of property 'defaultProps' are incompatible.
        Type '{} | null' is not assignable to type 'Partial<any> | undefined'.
          Type 'null' is not assignable to type 'Partial<any> | undefined'.

19                 <Route path='/' component={Compo}></Route>
                                   ~~~~~~~~~~~~~~~~~