Skip to main content

All Questions

-1 votes
1 answer
35 views

I dont have VueRouter or Router from 'vue-router' [closed]

I dont know how to make a web router in vue because im a beginner, so in every tutorial, i see that they import router or vuerouter from 'vue-router' What i've already tried? i ran npm install vue-...
Jesús Fernández's user avatar
0 votes
0 answers
28 views

How are cascading router-view elements handled?

TL;DR: how are the priorities of Vue routes (global vs child) calculated? Quasar is a Vue framework that can bootstrap applications. I am trying to follow its suggested structure but I am not sure how ...
WoJ's user avatar
  • 30.2k
0 votes
0 answers
36 views

Vue Router 2.6 Navigation Issue, cannot navigate back (browser button)

I’m working on a Vue.js (v. 2.6) application that uses Vue Router for navigation between different pages. After logging in, the user is redirected to the home page with the following code: this.$...
Bbird's user avatar
  • 13
0 votes
0 answers
35 views

Why won't data persist in a component that is reused?

I have a Vue component that is rendered on a route like this: { path: '/chat/:Username(\\w+)?', name: 'ViewChat', component: Chat } The Chat.vue component should render at the path /chat and ...
volume one's user avatar
  • 7,583
2 votes
1 answer
146 views

[Vue warn]: Failed to resolve component: UserBasket

I ran into an issue that had me scratch my head for a few days now. I am doing a application with vuejs3 frontend. For all the code I provide I removed the most other code and kept what I think is ...
Tarakos's user avatar
  • 23
0 votes
0 answers
70 views

Facing issues in nested routes in Vue-3

I am creating a simple CRUD application for users based on different roles, but I'm facing issues with nested routes and component rendering. I have carefully reviewed their official documentation, ...
Ittefaq Technologies's user avatar
0 votes
2 answers
112 views

Handling a this.$router.replace(href); in vue 2

I am new to vue and working on vue code those before me created. So there is a lot of legacy code that is just too complex to change right now. The vue code can be in one of two states when a user ...
Sam Carleton's user avatar
  • 1,420
0 votes
0 answers
187 views

Module not found: Error: Can't resolve 'vue-router' in '{Project Path}\src'

In my vue.js project, I put this code : import {createRouter, createWebHistory} from 'vue-router'; on the file router.js, but when I try to run the project on browser I always got this error message ...
Willy R. W.'s user avatar
1 vote
1 answer
50 views

transferring userId from one component to another using vue router

I have a list of users obtained from the api. I need to make sure that when you click on the user's name, a page with his information opens with a separate link Component UsersList <button @click=&...
Begemot's user avatar
  • 25
0 votes
1 answer
38 views

vue3: Optionally turning RouterLink into a link

I checked the docs but before opening a vue feature request I'd like to be sure if it's implemented already. I'd like 'My link text' to optionally become a link without having to duplicate the content ...
codekoriko's user avatar
0 votes
1 answer
469 views

Right way of middleware in vue-router

I have created routes in vue, and defined some middleware conditions before each route. But It's not working as I expected. This is router/index.js file. const token = computed(() => useAuthStore()...
Gursahb Webcyst's user avatar
4 votes
1 answer
5k views

VUE error : Discarded invalid param(s) "recordIds", "datasources" when navigating

in Vue i am facing an issue while passing params from one route to another. This with what my target route looks like : { path: '/record-modification', name: 'recordModification', component: ...
Amit K.'s user avatar
  • 3,764
0 votes
1 answer
2k views

Vue - refresh state on clicking back button in the browser

I am developing a login page, which lists different provider options. If you click on a provider, it will redirect to the sign-in page of the respective provider. This login component has a bool ...
nitcherry's user avatar
0 votes
1 answer
98 views

Vue route not being registered

I am trying to add a new route to an existing web app: This is the entry point: // main.js import router from './router'; ... etc new Vue({ router, ... etc render: (h) => h(App), }).$mount('...
Fi Li Ppo's user avatar
  • 185
0 votes
0 answers
620 views

How can I pass props to route components in vue.js using Vue Router?

I'm still new to learning vue.js. I'm trying to introduce a dropdown menu into my website so I can simply navigate to other pages. The problem is when I try and pass props in the manner that the ...
CRUX56's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
61