I\'m testing out react router and I created 2 dummy components. The home path works fine, but when I try to go to the /second path, it gives the following erro
/second
Try to add "historyApiFallback: true" in your webpack.config. It worked for me.
devServer: { historyApiFallback: true, stats: options.stats, hot: true, contentBase: './dist', watchOptions: { ignored: /node_modules/ } }