knocklabs / javascript

Official JavaScript packages for interacting with Knock
https://knock.app/
MIT License
16 stars 3 forks source link

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

Open TionCada opened 1 month ago

TionCada commented 1 month ago

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 commented 1 month ago

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