Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading to typescript 5.5.x breaks plugin helper typing #597

Open
Andr9651 opened this issue Jul 30, 2024 · 1 comment
Open

Upgrading to typescript 5.5.x breaks plugin helper typing #597

Andr9651 opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Andr9651
Copy link

Andr9651 commented Jul 30, 2024

🐛 The bug

Adding [email protected] 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.

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.

@Andr9651 Andr9651 added the bug Something isn't working label Jul 30, 2024
@jakubkoje
Copy link

This is happening to me also. The ionic.d.ts file is empty, and it causes the autoimported plugins to be of type unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants