Laravel + Vue project–[vue-router] Failed to resolve async component default: ChunkLoadError: Loading chunk dashboard failed

I am working on a Laravel and Vue project, at the moment of executing the server php run serve the project works normally, I can log in normally but, when I run the vue compilation command npm run watch or npm run dev the page stops loading and throws me an error in the console.


the composition of the webpack.mix.js file is this:

mix.webpackConfig({
output: {
publicPath: '/mediamanager/public',
//  publicPath: '/',
chunkFilename: 'js/components/[name].js',
}
});

dev dependiencies: