You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Could not find a declaration file for module 'history'. '/path/to/project/node_modules/history/index.js' implicitly has an 'any' type.
If the 'history' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/history'
1 | import { useHistory } from 'react-router-dom';
2 | import { createBrowserHistory } from 'history';
Any guidance is appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
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:
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!
The text was updated successfully, but these errors were encountered: