DEV Community

Cover image for Cannot find name 'Bugsnag'
Corentin for Mailmeteor

Posted on • Edited on

1 1

Cannot find name 'Bugsnag'

When you get started with Bugsnag, they have a handy guide to help you make sure errors are well reported to their monitoring tool. In Mailmeteor, we are using Bugsnag to make sure our tools are robust and bug-free.

But recently, when initializing a new TypeScript project on Bugsnag, I end up having this error: Cannot find name 'Bugsnag' (which might also be seen as Bugsnag is not defined).

Cannot find name 'Bugsnag'

Quick fix

Just add import Bugsnag from '@bugsnag/js'. The type error is gone :-)

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay