react-router/index.d.ts file in this repo and had problems.@types/[email protected]. The dependency between the type definitions should be properly set. npm shrinkwrap but that doesn't work for project templates where you want to start with the latest versions of the required packages. Also, when upgrading dependencies it quickly becomes a problem.xxxx/xxxx.d.ts.Same issue for me too. You can found the error messages below:

Thanks
I have hit this same issue--manually installing @types/history@^2.0.0 seems to have solved it.
I'm having this same exact issue.
I'm also having the same issue, what I did to allow for a successful build is to install @types/history version 2.0.44.
Version 2.0.44 was the version that was working for me before this issue.
npm install @types/[email protected]
Consider this a temporary workaround until the proper version is place instead of *.
I believe this issue relates to this setting in react-router/tsconfig.json:
{
"compilerOptions": {
"paths": {
"history": ["history/v2"]
}
}
}
The type defs in history are indeed incompatible with the current react-router defs, but the ones in history/v2 look OK.
Moreover, the npm package for @types/react-router depends on @types/history that, in turn, was exported form history instead of history/v2.
I find it surprising that react-router will automatically pull in even major version changes from its children. This seems to guarantee errors. I think it should at most pull in only minor changes and preferably only patch changes.
Related PR #14035
This is fixed now. npm info @types/react-router dependencies
I tried to install @types/react-router-redux (in my own project):
npm install --save @types/react-router-redux
But it doesn't contain "v2" or "v3" folder in node_modules.
What am I doing wrong?

If you want to install an older version, use e.g. npm install @types/react-router@2.
Most helpful comment
If you want to install an older version, use e.g.
npm install @types/react-router@2.