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

Disabling module during development removes types #79

Open
jordypereira opened this issue Oct 16, 2024 · 1 comment
Open

Disabling module during development removes types #79

jordypereira opened this issue Oct 16, 2024 · 1 comment

Comments

@jordypereira
Copy link

jordypereira commented Oct 16, 2024

We disable bugsnag in development.

  bugsnag: {
    disabled: isDevelopment,
   ...
  }

Vscode rightfully indicates that it can not find the composable.
image

  // @ts-expect-error - Not enabled in development
  if (typeof useBugsnag !== 'undefined')
    // @ts-expect-error - Not enabled in development
    useBugsnag().setUser(USER_ID_COOKIE)

Any suggestions?

@JulianMar
Copy link
Owner

Hey, can you pls provide a reproduction with stackblitz and specify which version of the module and nuxt you are using?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants