Closed tom-hag closed 3 years ago
Hi @tom-hag , I do believe this to be a duplicate of #61 as you later noticed. That's what your log output suggests. I'm going to close this issue in favor of that one.
Cheers, @bwoskow-ld
This is resolved in 2.22.2.
Describe the bug Currently your docs say:
Since npm 7 now automatically installs peer dependencies by default I cannot install launchdarkly-react-client-sdk (as recommended in the sdk docs) with react 17.0.1.
This can be fixed by adding the
--legacy-peer-deps
flag to thenpm i
command when using npm 7.This issue is not present when using npm 6 since it behaves as though
--legacy-peer-deps
were on by default.To reproduce
npm i --save launchdarkly-react-client-sdk
Expected behavior launchdarkly-react-client-sdk should install for react 17.0.1 as suggested is possible in the docs.
Logs This is the error log of
npm i --save launchdarkly-react-client-sdk
SDK version launchdarkly-react-client-sdk@2.22.1
Language version, developer tools
OS/platform macOS Catalina 10.15.7
edit: I've just noticed https://github.com/launchdarkly/react-client-sdk/pull/61