Closed bmueller-sykes closed 2 years ago
Same story for us
We cannot upgrade to v5, but still need type definitions for v4
type definitions for versions prior to v5 are available via DefinitelyTyped (just make sure to use the v4 version of the types)
Okay, thank you for the quick answer!
Worked for us
Yeah, that worked for me as well, it would appear. I looked for that type file, but couldn't find it initially for some reason, but adding this to my devDependencies in package.json
:
`"@types/history": "4.7.11",
...did the trick
Apologies if this is not the right place for this. As of a couple of days ago, I cannot get my TS-based React project to start in dev mode. I'm running v4.10.1 at present, and cannot upgrade to v5 (I still rely on
basename
for some parts of my code, and cannot easily refactor those parts yet. Someday...).When I run
npm start
I get the following error:Any guidance is appreciated. Thanks!