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

Fix circular deps in package to avoid warnings in react-native #943

Open
nihalbhatnagar opened this issue Oct 30, 2024 · 0 comments
Open
Assignees

Comments

@nihalbhatnagar
Copy link
Contributor

We get this warning in expo/react-native:

λ node_modules/expo-router/node/render.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (974/974)λ  WARN  Require cycle: node_modules/@osdk/client/build/browser/objectSet/createObjectSet.js -> node_modules/@osdk/client/build/browser/object/fetchPage.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/getDollarLink.js -> node_modules/@osdk/client/build/browser/objectSet/createObjectSet.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. 
  factory (node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/getDollarLink.js:16:1)
  factory (node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js:20:1)
λ  WARN  Require cycle: node_modules/@osdk/client/build/browser/object/fetchPage.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js -> node_modules/@osdk/client/build/browser/object/convertWireToOsdkObjects/getDollarLink.js -> node_modules/@osdk/client/build/browser/object/fetchSingle.js -> node_modules/@osdk/client/build/browser/object/fetchPage.js
@nihalbhatnagar nihalbhatnagar self-assigned this Oct 30, 2024
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

1 participant