Sentry-javascript: Add official React 17 support

Created on 30 Oct 2020  路  3Comments  路  Source: getsentry/sentry-javascript

Package + Version

  • [x] @sentry/[email protected]
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

5.27.2

Description

After upgrading to React 17, I get that warning from yarn:

warning " > @sentry/[email protected]" has incorrect peer dependency "[email protected] || 16.x".
warning " > @sentry/[email protected]" has incorrect peer dependency "[email protected] || 16.x".

Most helpful comment

According to https://reactjs.org/blog/2020/10/20/react-v17.html#no-new-features there should be nothing that stops us from just adding 17.x to the list I guess?

All 3 comments

Same thing here. :+1:

According to https://reactjs.org/blog/2020/10/20/react-v17.html#no-new-features there should be nothing that stops us from just adding 17.x to the list I guess?

@kamilogorek that should be the case, yes. I'm using 5.27.2 with React 17 in some projects without issues, although I'm not using _all_ the exposed features of the package so there might be some edge cases I haven't run into.

Was this page helpful?
0 / 5 - 0 ratings