docs: mention workaround for typedPages in unhoisted pnpm setups (#31262)

This commit is contained in:
Anoesj Sadraee 2025-03-07 14:19:22 +01:00 committed by Daniel Roe
parent 2476cab9a3
commit 1e77583b8e
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -308,6 +308,10 @@ Out of the box, this will enable typed usage of [`navigateTo`](/docs/api/utils/n
You can even get typed params within a page by using `const route = useRoute('route-name')`.
::important
If you use `pnpm` without `shamefully-hoist=true`, you will need to have `unplugin-vue-router` installed as a devDependency in order for this feature to work.
::
::tip{icon="i-ph-video" to="https://www.youtube.com/watch?v=SXk-L19gTZk" target="_blank"}
Watch a video from Daniel Roe explaining type-safe routing in Nuxt.
::