Swr: React 17 Support

Created on 27 Oct 2020  路  3Comments  路  Source: vercel/swr

Opening an issue to track SWRs support for react/react-dom 17. It appears to work fine, but I didn't spot any motion on updating the peer dep requirements. Apologies if this ends up being duplicate.

Bug report

swr appears to work great with react 17 but reports a missing peer dep of react 16.

Description / Observed Behavior

swr is throwing a peer dep warning on react 17 for v16, but appears to work fine.

Expected Behavior

swr support react 17 peer deps.

Repro Steps / Code Example

Simply install next 10, react + react-dom 17 and SWR 0.3.2. and you will see the warning.

Most helpful comment

With npm 7, this is actually an error that blocks installation.

All 3 comments

With npm 7, this is actually an error that blocks installation.

With npm 7, this is actually an error that blocks installation.

Had to pass it --legacy-peer-deps (or something like that) to make it work locally.

Released [email protected] with the patch from @bcomnes 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiagocorreiaalmeida picture tiagocorreiaalmeida  路  3Comments

nainardev picture nainardev  路  4Comments

DoT214 picture DoT214  路  4Comments

polc picture polc  路  3Comments

dandrei picture dandrei  路  3Comments