[Vuejs]-Not able to use route.push, it errors 'Maximum call stack size exceeded'

0๐Ÿ‘

// router.js
const router = new VueRouter({
  mode: 'history',
  routes: routes,
})

export.default router

// main.js

import Vue from 'vue';
import '/imports/app.js'
import router from '. /router.js'

this.$router.push({ name: 'form-customer' })

might help you

Leave a comment