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

Usage in React-Native #35

Open
The18thWarrior opened this issue Dec 13, 2023 · 0 comments
Open

Usage in React-Native #35

The18thWarrior opened this issue Dec 13, 2023 · 0 comments

Comments

@The18thWarrior
Copy link

I'm trying to add the goldrush kit to a react-native projects and getting the following error: Metro has encountered an error: While trying to resolve module @covalenthq/goldrush-kit from file /Users/.../frontend/pages/wallet/ViewWallet.tsx, the package /Users/.../node_modules/@covalenthq/goldrush-kit/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/.../node_modules/@covalenthq/goldrush-kit/dist/goldrush-kit.umd.cjs. Indeed, none of these files exist:

  • /Users/.../node_modules/@covalenthq/goldrush-kit/dist/goldrush-kit.umd.cjs(.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.jsx|.native.jsx|.jsx|.ios.js|.native.js|.js|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.cjs|.native.cjs|.cjs)
  • /Users/.../node_modules/@covalenthq/goldrush-kit/dist/goldrush-kit.umd.cjs/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.jsx|.native.jsx|.jsx|.ios.js|.native.js|.js|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.cjs|.native.cjs|.cjs): /Users/.../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

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