question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@bugsnag/plugin-react@7.5.3" has unmet peer dependency "@bugsnag/core@^7.0.0

See original GitHub issue

Describe the bug

When installing Bugsnag with the React plugin following the install instructions a peerDependency warning is show during yarn install.

While it is listed as a peerDependency in package.json the @bugsnag/core package actually says that it’s not likely something a user would want to install and the instruction in the React plugin README do not mention it.

Seems like an incorrect PeerDependency, or READMEs need to be updated?

Steps to reproduce

  1. Go to https://github.com/bugsnag/bugsnag-js/tree/next/packages/plugin-react#installation
  2. Add bugsnag to project with yarn add @bugsnag/js @bugsnag/plugin-react per install instructions
  3. PeerDep warning will display warning " > @bugsnag/plugin-react@7.5.3" has unmet peer dependency "@bugsnag/core@^7.0.0".

Environment

  • Bugsnag version: 7.5.3
  • Browser framework version (if any):
    • React: 16.13.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luke-beltoncommented, May 18, 2022

We’ve just released v7.16.5 of bugsnag-js which marks @bugsnag/core as an optional peer dependency to avoid the warnings described above 🎉

1reaction
himynameisdavecommented, Mar 15, 2022

Hey @yousif-bugsnag 👋 Just checking if this is happening anytime soon, or if I could assist in any way here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bugsnag docs › Platforms › Android
Learn how to integrate Bugsnag with your Android application for automatic crash reporting and detailed diagnostic reports.
Read more >
How do I fix the npm UNMET PEER DEPENDENCY warning?
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met.
Read more >
@bugsnag/js | Yarn - Package Manager
Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found