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

Circular dependencies between KnockProvider.mjs <-> useAuthenticatedKnockClient.mjs <-> KnockProvider.mjs #251

Open
TionCada opened this issue Oct 15, 2024 · 1 comment
Assignees

Comments

@TionCada
Copy link

Hello, I am encountering a circular dependency during the application build. We are using the @knocklabs/react (v0.2.28) and @knocklabs/client (v0.10.13) libraries

The error message is as follows:

Circular dependency: node_modules/@knocklabs/react-core/dist/esm/modules/core/context/KnockProvider.mjs -> node_modules/@knocklabs/react-core/dist/esm/modules/core/hooks/useAuthenticatedKnockClient.mjs -> node_modules/@knocklabs/react-core/dist/esm/modules/core/context/KnockProvider.mjs

@connorlindsey connorlindsey self-assigned this Oct 15, 2024
@connorlindsey
Copy link
Contributor

Hi! I haven't been able to reproduce this error. Could you please share:

  • How you're using each package, especially what you're importing from each
  • Context on your build environment/bundler/etc. that may be impacting this?

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

2 participants