All Questions
Tagged with nuxt.js vue-router
407
questions
0
votes
0
answers
8
views
How can I using common routes for multi-projects
I am using NuxtJs 3 and I have 3 folders containing 3 different nuxtjs projects in which the "packages" folder contains 2 subfolders "cms" and "monitor". When I run the ...
0
votes
0
answers
26
views
What causes Cannot find module '~/pages/index.vue' or its corresponding type declarations. ts(2307) error while using router.options.ts?
see sample image here
I have a nuxt 3 project and I would like to use custom routing with it. I followed nuxt documentation on custom routing and added a folder named 'app' and inside I created router....
0
votes
0
answers
48
views
Return a Rewrite in Nuxt3 with Nitro server middleware
For a nuxt3 app with the following folder structure:
pages/
├── foo.vue
└── bar.vue
server/
└── middleware/
└── index.js
How can a rewrite be returned from index.js?
Here is a link to a live ...
0
votes
1
answer
30
views
Nuxt 3 child route with dynamic parameter not getting active-class
I have the following folder structure. And the following pages are of important
/workshops and /workshops/workshop-1.
The issue I'm having now is that my active-link works for /workshops, but not for ...
1
vote
0
answers
50
views
Nuxt 3 Dynamic Routing Conflict with Nested and Single Slug Pages
I am building a project with Nuxt 3, However, I am facing a routing conflict with my current setup. Here is my folder structure:
pages/
[types]/
[slug].vue
[...categoryPath]/
[slug].vue
[...
2
votes
0
answers
66
views
Detect route change inside inner/partial component (VueRoute 3 in Nuxt 2.14)
Issue
The Vue component PartialComponent has another InnerPartialComponent that, in turn, has a Google Recaptcha (i.e. VueRecaptcha) inside that actually is an old vue-recaptcha (v1.3.0). So, in ...
0
votes
1
answer
72
views
When navigating to a route the useFetch won't work reactive
I am trying to use useFetch in my page component, so when I navigate to this page using nuxt-link the useFetch will send the request and get the response of 200, but the items fetched from the api won'...
0
votes
0
answers
29
views
How to routing view in a child of view routed?
I have a website use Vue Nuxt Typescript Pinia Tailwind.
I don't know how to load a view that view is loaded by route of top navigation cuz inside loaded view I have sidebar menu, I want each choice ...
1
vote
3
answers
261
views
Pass dynamic object data via nuxt-link to component
I have a project which is build in Nuxt 3 with a homepage which shows products. On that homepage, you can click on the title of the product and the product details page opens up. I archive this by ...
1
vote
1
answer
155
views
Props in NuxtPage
Good day, I created a page that should change the title depends of the place where was call, and I have a question, I need to pass the title as a page prop, I tried to send that with $router.push({ ...
0
votes
0
answers
24
views
Inconsistency in the path value before and after page reload in Nuxt.js
In my Nuxt.js application, I've noticed that before reloading the page, the path value accessed using
this.$route.path ="/mytasks",
but after reloading the page, the path value changes to
&...
0
votes
1
answer
451
views
Error when using Route Query Parameters in Nuxt/Vue Template with TypeScript
I'm working on a Nuxt.js project with TypeScript and encountering an issue with route query parameters. Specifically, TypeScript is giving me a type error related to a route query parameter named ...
0
votes
0
answers
156
views
Nuxt3 - Route not Found
Before routing to any path it is showing but whenever my app contains some reloading, refreshing functions or even if I reload the website manually the nuxtapp is revealing 404 not found error.
So I ...
0
votes
1
answer
458
views
How get route's params with Nuxt3
I used Nuxt3 with Composition API.
When moving from bakset to order, basket is using router.push, and is turning over parameters. How can I get these parameters from order? In the nuxt2 version, you ...
1
vote
0
answers
270
views
Mock Service Worker warning in Nuxt3
While playing around with Nuxt3 for the first time, after some time I observed that the console issues a following warining:
[Vue Router warn]: No match found for location with path "/...