原链接:
https://blog.csdn.net/qq_44242030/article/details/108823697?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160293953019195264745886%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=160293953019195264745886&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v28-2-108823697.first_rank_ecpm_v3_pc_rank_v2&utm_term=vue-router.esm.js%3F8c4f%3A1958+Un&spm=1018.2118.3001.4187
[vue报错vue-router.esm.js?8c4f:2007 Uncaught (in promise) NavigationDuplicated {_name: “NavigationDuplicated”, name: “NavigationDuplicated”}]
解决方法:经过多次尝试发现原因可能是 在重新下载依赖包时,安装的vue-router还是之前出错的那个版本,
解决方法也很简单,在项目目录下运行 npm i vue-router@3.0 -S 即可。