Closed Kamahl19 closed 5 years ago
The fix for this is to change this line to import * as launchDarklyBrowser from "ldclient-js";
. Once that is done the tests will need fixed (I believe the mocks get messed up is the reason why).
Also just for reference, the LaunchDarkly team said in future ldclient-js
versions that they'll be removing the default export. I'm sure it'll be a little while and would certainly be a major version bump.
Any updates on this?
@janhartmann I haven't had time to work on it, so it is up for grabs as far as I know!
Fixed as part of https://github.com/TrueCar/react-launch-darkly/pull/91. Release patch version coming up!
Released as part of 3.1.1: https://github.com/TrueCar/react-launch-darkly/releases/tag/v3.1.1
[LaunchDarkly] "default export" is deprecated, please use "named LDClient export"