1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-21 16:55:57 +00:00

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

This commit is contained in:
Anoesj Sadraee 2025-03-07 14:19:22 +01:00 committed by GitHub
parent 5b09d84d39
commit fb1739feb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,6 +256,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.
::