router-extras-module icon indicating copy to clipboard operation
router-extras-module copied to clipboard

Does it work with Nuxt3?

Open RndUsername opened this issue 2 years ago • 3 comments

Does this module work with Nuxt3, too? I can't get it to work...

RndUsername avatar May 10 '22 22:05 RndUsername

Alright, I'm a dummy dumm... Nuxt3 already has metadata for alias and stuff!

RndUsername avatar May 10 '22 22:05 RndUsername

@RndUsername i wasn't able to get it working for nuxt 3 I get Uncaught SyntaxError: import not found: default in my browser console when i have the in any page component

I'm trying to enable props for routes by adding props: true

elliopitas avatar Jul 27 '22 21:07 elliopitas

I'm finding that the definePageMeta alias is not working like this module did in Nuxt 2. Specifically, if I have a NuxtLink with a :to="dynamicRoute" and I try to replace the route.params, it does not work. It acts as if the path is removed entirely.

nathanchase avatar Aug 05 '22 14:08 nathanchase

That is because of this : https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22

This module is also based off of vue route

justinkekeocha avatar Aug 24 '23 22:08 justinkekeocha

Will track Nuxt 3 support here https://github.com/nuxt-community/router-extras-module/issues/171, but I beleive definePageMeta should cover most use cases.

harlan-zw avatar Sep 11 '23 11:09 harlan-zw