`BugsnagClient.getPlugin( "react" )` is `undefined`.
See original GitHub issueHi There,
I followed your React integration guide to a T, trying to get Bugsnag reporting from our Electron app.
I have the following:
import Bugsnag from "@bugsnag/js";
import BugsnagReact from "@bugsnag/plugin-react";
const BugsnagClient = Bugsnag( "my_api_key" );
const ErrorBoundary = BugsnagClient.getPlugin( "react" );
console.log( "ErrorBoundary", ErrorBoundary ); // => undefined
But, as is shown above, ErrorBoundary
is undefined
.
Thoughts?
Also, is import BugsnagReact from "@bugsnag/plugin-react";
necessary since it’s not referenced anywhere?
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
React integration guide - JavaScript - Bugsnag docs
React integration guide. Add Bugsnag to your React projects to automatically capture and report errors in production.
Read more >How to mock Bugsnag in jest test cases for a react app
trying to do jest.mock("@bugsnag/js") but getting error TypeError: Cannot read property 'createErrorBoundary' of undefined.
Read more >the above error occurred in the <a> component: - You.com | The ...
The match prop is undefined. For whatever reason this ArticlePage component isn't receiving a defined match prop. Solution. Regardless of react-router-dom ...
Read more >@bugsnag/plugin-react | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >bugsnag Changelog - PyUp.io
getPlugin ('react')` [839](https://github.com/bugsnag/bugsnag-js/pull/839) ... Fixes a bug in IE11 where it converts `undefined` to a string, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is that you’re calling Bugsnag.getPlugin(‘react’) before you call Bugsnag.start().
For those who are still having issues try executing Bugsnag.start() function before ErrorBoundary object.