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

Error while bundling the application #11

Open
AndreiBehel opened this issue May 16, 2023 · 0 comments
Open

Error while bundling the application #11

AndreiBehel opened this issue May 16, 2023 · 0 comments

Comments

@AndreiBehel
Copy link

AndreiBehel commented May 16, 2023

React Native: 0.71.8

error: Error: While trying to resolve module @buttercup/google-oauth2-client from file /Users/andreibehel/Projects/mobile/src/screens/Dashboard/DashboardTabs/AccountsTab/controllers.ts, the package /Users/andreibehel/Projects/mobile/node_modules/@buttercup/google-oauth2-client/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/andreibehel/Projects/mobile/node_modules/@buttercup/google-oauth2-client/index. Indeed, none of these files exist:

  • /Users/andreibehel/Projects/mobile/node_modules/@buttercup/google-oauth2-client/index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg)
  • /Users/andreibehel/Projects/mobile/node_modules/@buttercup/google-oauth2-client/index/index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg)
    at DependencyGraph.resolveDependency (/Users/andreibehel/Projects/mobile/node_modules/metro/src/node-haste/DependencyGraph.js:272:17)
    at Object.resolve (/Users/andreibehel/Projects/mobile/node_modules/metro/src/lib/transformHelpers.js:177:21)
    at Graph._resolveDependencies (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:432:35)
    at Graph._processModule (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:218:38)
    at async Graph._addDependency (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:314:20)
    at async Promise.all (index 12)
    at async Graph._processModule (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:263:5)
    at async Graph._addDependency (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:314:20)
    at async Promise.all (index 1)
    at async Graph._processModule (/Users/andreibehel/Projects/mobile/node_modules/metro/src/DeltaBundler/Graph.js:263:5)
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