Vue Router - Failed to resolve async component after reloading page
What's your webpack configuration?
You probably need to set a public path in your output object:
output: { path:'/dist', filename: '[name].js', chunkFilename:'js/[id].[chunkhash].js', publicPath: '/', },