nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
273 stars 29 forks source link

nuxt-bridge plugins #425

Closed freezboi closed 1 year ago

freezboi commented 2 years ago

Environment

Reproduction

https://stackblitz.com/edit/github-er4gxj?file=pages%2Findex.vue

Describe the bug

https://v3.nuxtjs.org/guide/directory-structure/plugins#automatically-providing-helpers

It seems that type inference does not work properly when using it in a component after creating a custom plugin by following the guide in the link. In the case of the newly created $first plugin, the type is any.

Additional context

No response

Logs

No response

dwightjack commented 1 year ago

I guess this issue is related to https://github.com/nuxt/bridge/issues/539.

wattanx commented 1 year ago

This issue was resolved at https://github.com/nuxt/bridge/issues/539.