You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a fresh installation of configcat-react, it would install a peer deps of configcat-common. The problem is that the peer deps is not compatible.
configcat-react version 4.2.0 requires configcat-common version ^9.1.0.
This installs version 9.2.0 which is apparently not compatible with configcat-react version 4.2.0.
To reproduce
Do a fresh install npm i configcat-react
Try to import configcat-react in your react project
It would throw errors related to configcat-react trying to import something that is not exported anymore.
Expected behavior
No errors should show when importing configcat-react
Screenshots
SDK version
configcat-react version 4.2.0
SDK configuration
Please copy paste the client initialization code snippet, so we can see how you are using the SDK.
Logs
N/A
Language/Framework version
N/A
Platform
MacOS
Note that the workaround is to explicitly install configcat-common version ~9.1.0 in my own package.json.
The text was updated successfully, but these errors were encountered:
it looks like we've been bitten by the ^ version references of NPM.
Because of the ^ reference, configcat-common v9.2.0 is resolved instead of v9.1.0 and the former is incompatible with configcat-react v4.2.0 indeed as configcat-common v9.2.0 comes with a minor public API breaking change (where public means public to configcat-react but not public to the consumers of configcat-react). Yet this breaks configcat-react v4.2.0 and earlier.
After discussing the issue, we plan to solve the issue with fixed version references.
Sorry for the inconvience, the new version with the fix will be available soon.
Describe the bug
When doing a fresh installation of
configcat-react
, it would install a peer deps ofconfigcat-common
. The problem is that the peer deps is not compatible.configcat-react
version4.2.0
requiresconfigcat-common
version^9.1.0
.This installs version
9.2.0
which is apparently not compatible withconfigcat-react
version4.2.0
.To reproduce
npm i configcat-react
configcat-react
in your react projectExpected behavior
No errors should show when importing configcat-react
Screenshots
SDK version
configcat-react
version 4.2.0SDK configuration
Please copy paste the client initialization code snippet, so we can see how you are using the SDK.
Logs
N/A
Language/Framework version
N/A
Platform
MacOS
Note that the workaround is to explicitly install
configcat-common
version~9.1.0
in my own package.json.The text was updated successfully, but these errors were encountered: