score:3

i had this problem. solved it by adding the following to my webpack.config.js

devserver: {
  historyapifallback: true,
  contentbase: path.join(__dirname, "dist"), // not related but important
}

you can also toggle this option via the command-line: https://webpack.github.io/docs/webpack-dev-server.html#the-historyapifallback-option

in my case, i got it working by putting it in the config file.

good luck !


Related Query

More Query from same tag