-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Automatically setting basename using <base href> is deprecated and will be removed in the next major release. The semantics of <base href> are subtly different from basename. Please pass the basename explicitly in the options to createHistory #4055
Comments
Try passing the |
Sorry that was a typo.. updated the code.. i had passed history.. still getting the same |
Not sure, check versions and simplify the code until it starts working. |
|
I don't think this is an issue with react-router. Try to get as close to the react-router-redux example as possible. I can't see something obviously wrong from your code. |
Maybe try reinstalling dependencies as well, and if you can link your repo I can have a quick look to see if there's anything obvious, there's not really enough information to go off from the code you've supplied. |
Ok so the react app is only on 1 route which is part of an entire symfony app. I use nginx as the server config. So my site doesnt have a "/" path the home path for my site is actually "/consult" which is redirected to another repository via nginx and then in "/consult/ama" i have the react app set up. Can this error be possibly because of this configuration? |
Possibly, that does seem like quite a unique setup... Have you got a |
Ahh yes.. that seemed to be the issue.. was extending another parent file.. .. Closing.. Thanks @alisd23 |
Ok i know this is a previous issue too, but when i tried solving the issue with the suggestion given in the earlier issue, i was unable to so can someone please help me out
I get the following error
I tried using createHistory explicitly and pass a basename but to no avail. Can anyone help here.
The text was updated successfully, but these errors were encountered: