_ctx.$localePath is not a function #2168
Labels
API
good first issue
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
PR Welcome
v8
v9
Environment
Reproduction
https://stackblitz.com/edit/github-6vqdsb?file=app.vue,package.json,nuxt.config.ts
Describe the bug
According to documentation available at https://v8.i18n.nuxtjs.org/guide/migrating#change-some-export-apis-name-on-nuxt-context it seems that API methods have to be prefixed with $, however it results in 500 error (
_ctx.$localePath is not a function
).This works, but shows type error in VSCode
This does not work and results in 500 error
This does work
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: