Skip to content

TypeError cannot redefine property: default #36

@dan-hill-nutrien

Description

@dan-hill-nutrien

When using withLDProvider in our react application using this code:

export default withLDProvider({ clientSideID: ${appConfig.launchDarklyId} })( App );

we are getting the following error:

`TypeError: application 'dxp-sidebar-app' died in status LOADING_SOURCE_CODE: Cannot redefine property: default
(anonymous function)
./node_modules/launchdarkly-react-client-sdk/lib/withLDProvider.js:34
31 | o[k2] = m[k];
32 | }));
33 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {

34 | Object.defineProperty(o, "default", { enumerable: true, value: v });
35 | }) : function(o, v) {
36 | o["default"] = v;
37 | });`

SDK version
2.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions