Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSharavanan Subramanian
3,320 PointsReact router cannot get /** while trying to reload page in a nested route
I'm using react-router-dom, when navigating via links the route is working as it should, but when the page is refreshed while in a nested route it throws Cannot GET /***(what ever page it is in).
But as per this video demonstrated if you type a nested url it works?
gevuong
2,377 PointsAfter trying to figure this out for the past 2 hours, lo and behold the question and solution was posted within this video discussion. Thanks Sharavanan Subramanian for posting, and Justin McKenzie for your response.
Justin McKenzie
6,724 PointsJustin McKenzie
6,724 Pointsadd this to your webpack.config.js file:
devServer: { historyApiFallback: true }