Vue-router reported an error

"export "default" (imported as "router") was not found in "./router"

vue-router has been reporting errors these days

once suspected that there was something wrong with this version of router

Aug.17,2021

if you don't need routes, you can replace const reoutes = new VueRouter with export default new VueRouter


from your second picture, you should not add export default routes


first of all, you can't get your js because you didn't export it using const router. You want export const router


you don't look at the code?
Vue.use (Router)?
the landlord clearly uses VueRouter.


has the problem been solved?

Menu