question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It seems that nuxt-link can only monitor one level of directory

See original GitHub issue

Version

6.3.0

Reproduction link

https://codesandbox.io/s/codesandbox-nuxt-r3cpv

Steps to reproduce

  • localePath('demo')can work well
  • localePath('demo/test') will get an error [vue-router] Route with name 'demo/test___en' does not exist

What is expected ?

it can work well

What is actually happening?

get an error `[vue-router] Route with name ‘demo/test___en’ does not exist

<div align="right">This bug report is available on Nuxt community (#c336)</div>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rchlcommented, Apr 8, 2020

Yes, by path won’t work as paths are different for different languages and the path has to match the route path exactly.

There is #641 for making that work but until then you have to use route’s name, not path.

0reactions
mixncommented, Apr 8, 2020

@rchl Thank you for the quick response, I appreciate it. 😃

Maybe it’d help to point this out a bit more in the usage section? It can get lost in the many examples, out of which, technically, only one works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

nuxt-link as an image - vue.js - Stack Overflow
1. in your first example you have src="~assets/icons/filterLinkButton. · @kalidou.diagne - this is how you are supposed to include assets in nuxt ...
Read more >
How to make different blog posts across different subfolders ...
So far i can only make blog posts work if they are in the content folder, not in a subfolder. If i try...
Read more >
Server-side rendering with Vue and Nuxt.js - LogRocket Blog
To create routes in Nuxt, all we need to do is create a new .vue file within our pages folder and its subfolders....
Read more >
Getting Started With Nuxt - Smashing Magazine
This folder is one we're familiar with from Vue.js, it contains your reusable components. Now, let's create our first component and name it ......
Read more >
How To Use Server-Side Rendering with Nuxt.js | DigitalOcean
This command will generate a project in the directory you are currently working in: npx create-nuxt-app favorite-airports. If this is your first ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found