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

Unable to use Covalent SDK in React Native #37

Open
GouthamJM opened this issue Dec 18, 2023 · 1 comment
Open

Unable to use Covalent SDK in React Native #37

GouthamJM opened this issue Dec 18, 2023 · 1 comment

Comments

@GouthamJM
Copy link


Metro has encountered an error: While trying to resolve module `@covalenthq/client-sdk` from file `/Users/blocktheory/Desktop/projects/rnative/mpc/utils/api/covalentService/index.ts`, the package `/Users/blocktheory/Desktop/projects/rnative/mpc/node_modules/@covalenthq/client-sdk/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/blocktheory/Desktop/projects/rnative/mpc/node_modules/@covalenthq/client-sdk/index`. Indeed, none of these files exist:

  * /Users/blocktheory/Desktop/projects/rnative/mpc/node_modules/@covalenthq/client-sdk/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)
  * /Users/blocktheory/Desktop/projects/rnative/mpc/node_modules/@covalenthq/client-sdk/index/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css): /Users/blocktheory/Desktop/projects/rnative/mpc/node_modules/metro/src/node-haste/DependencyGraph.js (289:17)

  287 |         }
  288 |         if (error instanceof InvalidPackageError) {
> 289 |           throw new PackageResolutionError({
      |                 ^
  290 |             packageError: error,
  291 |             originModulePath: from,
  292 |             targetModuleName: to,

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0

Version :
"@covalenthq/client-sdk": "^0.7.0",

Screenshot 2023-12-18 at 5 12 14 PM
@The18thWarrior
Copy link

I also am seeing this issue w/ @covalenthq/goldrush-kit

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