You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding Typescript@5.5.x to a nuxt/ionic project with helpers exposed via a plugin, results in automatic type information being lost for that plugin. The helper is instead unknown and therefor results in an error when running nuxi typecheck despite it working when running the app.
As far as I can tell plugin typing still seems to be working for all the other nuxt modules in my project but that might also be because it's manually typed.
The text was updated successfully, but these errors were encountered:
🐛 The bug
Adding Typescript@5.5.x to a nuxt/ionic project with helpers exposed via a plugin, results in automatic type information being lost for that plugin. The helper is instead
unknown
and therefor results in an error when runningnuxi typecheck
despite it working when running the app.Steps to reproduce
Open the repro and run
npx nuxi typecheck
🛠️ To reproduce
https://stackblitz.com/edit/github-xow1vb?file=plugins%2Ftest.ts
🌈 Expected behaviour
That automatic plugin types work the same as on previous versions of typescript.
Workaround
Manually declare types for plugins as described in the nuxt docs
https://nuxt.com/docs/guide/directory-structure/plugins#typing-plugins
ℹ️ Additional context
As far as I can tell plugin typing still seems to be working for all the other nuxt modules in my project but that might also be because it's manually typed.
The text was updated successfully, but these errors were encountered: