NuxtLink create an a href="", but a click on it doesn't change page, anything happen
My NuxtLink isn't Working :
In the dom it creates an a href= :
But in my front, when clicked, nothing happend
And there is no error in the console
4 Replies
a reproduction would be helpful π
Isn't the problem that you've got a button inside a anchor? I think that's almost illegal? π¬
that is invalid indeed π
also, v-btn should have a
nuxt
and a to
option @BobLamarley
And there is no error in the consoleTripped here, because button in a tag should give hydration errors
It may be invalid, but that shouldn't be causing his problem. In our code, we put NuxtLinks around PrimeVue buttons that render the same as above and they work just fine.