nuxt-bugsnag icon indicating copy to clipboard operation
nuxt-bugsnag copied to clipboard

Disabling module during development removes types

Open jordypereira opened this issue 1 year ago • 1 comments

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?

jordypereira avatar Oct 16 '24 14:10 jordypereira

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

JulianMar avatar Oct 16 '24 14:10 JulianMar