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
When I included react-router-loader into my project I was using hashHistory with react-router. I tried switching to browserHistory I noticed that bundle urls are wrong when directly accessing a route.
And I start my webpack-dev-server like this: webpack-dev-server --content-base dist/ --history-api-fallback --inline --hot --host 0.0.0.0
Now when I navigate my browser to navigate to http://localhost:8080/resorts/7353 I get the following error in the browser console: GET http://localhost:8080/resorts/js/bundle.js 404 (Not Found). However if I just open http://localhost:8080/ and navigate there with react-router links it works.
Is this a bug or is there something wrong with my configuration?
The text was updated successfully, but these errors were encountered:
Ok sorry this has nothing todo with react-router-loader, it was an error on my side. I just noticed that i used a relative path for the bundle.js in my html file. Using an absolute path fixed the prolbem.
When I included react-router-loader into my project I was using hashHistory with react-router. I tried switching to browserHistory I noticed that bundle urls are wrong when directly accessing a route.
I have my routes set up like this:
The output of my webpack configuration is:
And I start my webpack-dev-server like this:
webpack-dev-server --content-base dist/ --history-api-fallback --inline --hot --host 0.0.0.0
Now when I navigate my browser to navigate to
http://localhost:8080/resorts/7353
I get the following error in the browser console:GET http://localhost:8080/resorts/js/bundle.js 404 (Not Found)
. However if I just openhttp://localhost:8080/
and navigate there with react-router links it works.Is this a bug or is there something wrong with my configuration?
The text was updated successfully, but these errors were encountered: