Closed anncwb closed 4 years ago
Use the jsfiddle on the new issue page to provide a repro. Thank you
Hi @anncwb ,
I meet the same issue, did you resolve it?
This is actually not a problem with the router. Check whether there is a problem with the corresponding page code
I had a similar error, found that there was a problem with one of the imports in the script section of my component.
This is actually not a problem with the router. Check whether there is a problem with the corresponding page code
You are right, i forgot to add comma between methods
How to resolve if this problem persists when I have an additional url segment on the routes ? Eg :
export const routes = [
{ path: '/marketplace.store', name: 'store.home', component: () => StoreVue },
{ path: '/marketplace.store/products/:slug', name: 'products.show', component: ()=> ShowProductVue },
. . .
export const router = createRouter({
history: createWebHistory(),
// base: '/ecommerce.store',
routes
})
and the router on the StoreVue component,
<router-link
class="block relative h-48 rounded overflow-hidden"
:to="{name: 'products.show', params: {slug: product.slug}}"
>
I'm working with laravel and vue3 , vue-router 4.x, The first path is working fine, the 'products.show' changes the window location on the address bar correctly but there's nothing changing on the page.
any help would be greatly appreciated. thanks in advance.
Is there a support group for .vue template linting configuration fails?
Version
4.0.0-beta.11
Reproduction link
https://new-issue.vuejs.org/?repo=vuejs/vue-router-next
Steps to reproduce
When the component corresponding to the route reports an error, the error message is intercepted by the router, only the following error message is displayed, and no specific error message is visible. This is very troublesome for debugging
What is expected?
Display specific error message
What is actually happening?
Display routing error information