-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Nuxt] No types for plugin to extend NuxAppInjections #13899
Labels
Package: nuxt
Issues related to the Sentry Nuxt SDK
Comments
Hello, thanks for filing this issue 🙌 The types look like this declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default; |
s1gr1d
added a commit
that referenced
this issue
Oct 8, 2024
[Nuxt module builder](https://github.com/nuxt/module-builder) uses the closest `tsconfig.json` and this had `"declaration": false`. I added another `tsconfig.json` closer to the module to generate those declarations. fixes #13899
A PR closing this issue has just been released 🚀This issue was referenced by PR #13909, which was included in the 8.34.0 release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.33.1
Framework Version
Nuxt 3.13.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
@sentry/nuxt
built package file located at /build/module/runtime/plugins/sentry.client.d.ts is empty. No types are exported, therefore theNuxtAppInjection
type built by Nuxt fails and resolves toany
which breaks every subsequent type of plugins used as, e.g.useNuxtApp().$pinia
Example in
.nuxt/types/plugins.d.ts
Steps to Reproduce
Install
@sentry/nuxt
, run nuxt so that the types are generated.If you had any use of plugins like
useNuxtApp().$pinia
or so on, they are resolved tounknown
which breaks the type-checking.Expected Result
File /build/module/runtime/plugins/sentry.client.d.ts must export at least:
(Would be even better if it had the full type.)
Actual Result
File is empty.
The text was updated successfully, but these errors were encountered: