react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

can't navigate to page or refresh

Open Weirdtopia opened this issue 8 years ago • 0 comments

Hello, I'm currently using NodeJs with the React-Redux-Starter-Kit,

i have added

historyApiFallback: true,

in webpackConfig-dev-server-config.js :

webpackConfig.devServer = {
  hot: true,
  https: true,
  historyApiFallback: true,
  contentBase: './',
  host: 'localhost',
  port: 8080,
  headers: {
    'Access-Control-Allow-Origin': '*'
  }
}

When i run npm run dev , a message appears in the console stating

404s will fallback to /index.html

but when i navigate to a non-existing page, the browser returns a blank page with a console error of :44334/asdfsadf:1 GET https://localhost:44334/asdfsadf 404 ()

Weirdtopia avatar Jun 07 '17 19:06 Weirdtopia