oscklmO
Convex Community17mo ago
2 replies
oscklm

Require cycle issues, can't seem to troubleshoot to where its coming from

Hello,

I'm getting this error when starting my expo web server. And have tried troubleshooting it for a while now, but can't seem to find any place where this import cycle happens that has anything to do with the files mentioned in the error:

Can anyone from the convex team, help me shine some light on this and where i could maybe look and check?
λ  WARN  Require cycle: node_modules/convex/dist/cjs/server/impl/actions_impl.js -> node_modules/convex/dist/cjs/server/api.js -> node_modules/convex/dist/cjs/server/impl/actions_impl.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
  factory (node_modules/convex/dist/cjs/server/api.js:35:27)
  factory (node_modules/convex/dist/cjs/server/impl/actions_impl.js:29:18)
Was this page helpful?