From 1e77583b8e91dfe56b1e52d635f8b893f7c299a0 Mon Sep 17 00:00:00 2001 From: Anoesj Sadraee Date: Fri, 7 Mar 2025 14:19:22 +0100 Subject: [PATCH] docs: mention workaround for `typedPages` in unhoisted pnpm setups (#31262) --- docs/2.guide/3.going-further/1.experimental-features.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/2.guide/3.going-further/1.experimental-features.md b/docs/2.guide/3.going-further/1.experimental-features.md index 994a79b0fe..52432aadaf 100644 --- a/docs/2.guide/3.going-further/1.experimental-features.md +++ b/docs/2.guide/3.going-further/1.experimental-features.md @@ -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. ::