Issue
Using the Split React SDK (version 1.1.0 and below), following the instructions to enable Google Analytics plugin, when running the app, the error below is logged when the SDK factory is initialized
This integration is currently supported in Split's JavaScript client side SDK version 10.11.1 and above
Root cause
The react SDK is dependent on Javascript SDK version 10.10.0, which is below the version that officially support the Google Analytics plugin.
Solution
The React SDK is a thin layer on top of the Javascript SDK, which means it will work fine with newer versions, if the React SDK is installed through npm package, follow the instructions below to upgrade the Javascript SDK dependency:
1- Navigate to the folder below:
your app/node_modules/@splitsoftware/splitio-react
2- Open the config.json file, then update the version in the section below:
"dependencies": {
"@splitsoftware/splitio": "10.13.0"
},
3- Save the file and run the command below under the same folder to upgrade the Javascript SDK dependency:
npm update
Comments
0 comments
Please sign in to leave a comment.