Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: Module not found: Error: Package path ./lib/context is not exported #10

Open
maurice-at-someday opened this issue Aug 1, 2023 · 4 comments

Comments

@maurice-at-someday
Copy link

When updating the dependency of launchdarkly-react-client-sdk in our app to version 3.0.8 I receive the following error:

ModuleNotFoundError: Module not found: Error: Package path ./lib/context is not exported from package C:\repos\someday-frontend\node_modules\launchdarkly-react-client-sdk (see exports field in C:\repos\someday-frontend\node_modules\launchdarkly-react-client-sdk\package.json)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\Compilation.js:2016:28)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:805:13)
    at eval (eval at create (C:\repos\someday-frontend\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:10:1)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:272:22)
    at eval (eval at create (C:\repos\someday-frontend\node_modules\tapable\lib\HookCodeFactory.js:28:14), <anonymous>:9:1)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:436:22)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:118:11)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:677:25)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:881:8)
    at <anonymous> (c:\repos\someday-frontend\node_modules\webpack\lib\NormalModuleFactory.js:1001:5)

The import from from 'launchdarkly-react-client-sdk/lib/context' is no longer valid and it appears the ReactSdkContext is no longer exported at all.

@kodai3
Copy link
Owner

kodai3 commented Aug 1, 2023

Thank you for raising.
They changed the output path from 3.0.7. 😩
I think I can fix in this week.

@maurice-at-someday
Copy link
Author

I suspected it was the Rollup change that caused this.

Thanks

@imri29
Copy link

imri29 commented Sep 6, 2023

Hey @kodai3, still getting this error, updating to 3.0.9. Any updates on fix eta?

@kodai3
Copy link
Owner

kodai3 commented Sep 6, 2023

@imri29
Hi, I couldn't fix it quickly back then and been busy since then.
Actually, I have intension to migrate from LaunchDarkly to other SaaS or self-made system, so fixing this is not my priority...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants