-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading from 4.10.1 to 5.0.0: history/index"' has no exported member 'LocationState'. TS2694 #835
Comments
That type doesn't exist? I see H.LocationDescriptor in your code as well. These looks like types from @types/history... history contains its own types. Location is defined https://github.com/ReactTraining/history/blob/28c89f4091ae9e1b0001341ea60c629674e83627/packages/history/index.ts#L99 |
I am seeing the same issue with LocationState and I am not using @types/history package on my project. Is there a recommended migration path away from LocationState ? |
The type definitions in @types/history are for v4. v5 comes with its own type definitions, so you don't need @types/history anymore. |
FYI - for anyone still hitting this page in the search results, changing the import & type from I'm using History v5.0.1. |
Upgrading from 4.10.1 to 5.0.0 causes:
Seems like an internal bug
The text was updated successfully, but these errors were encountered: