score:1

your import statement is wrong. it should be like this:

import type { routerhistory } from 'react-router-dom'

edit:

it seems that the routerhistory type is in the react-router package. since react-router-dom uses react-router as a base dependency you should add the react-router package with flow-typed. flow-react-router


Related Query

More Query from same tag