mrousavy/react-native-tracking-transparency

bundling failed: Error: While trying to resolve module `react-native-tracking-transparency`

nagtilaklaxman opened this issue · 0 comments

bundling failed: Error: While trying to resolve module react-native-tracking-transparency from file /Users/lucky/Projects/apps/reactNativeSalesapp/utility/appTrackingTransparency.js, the package /Users/lucky/Projects/apps/apps/reactNativeSalesapp/node_modules/react-native-tracking-transparency/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/react-native-tracking-transparency/src/index. Indeed, none of these files exist:

  • reactNativeSalesapp/node_modules/react-native-tracking-transparency/src/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  • /Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/react-native-tracking-transparency/src/index/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
    at ResolutionRequest.resolveDependency (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:65:15)
    at DependencyGraph.resolveDependency (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/node-haste/DependencyGraph.js:283:16)
    at Object.resolve (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/lib/transformHelpers.js:264:42)
    at /Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:399:31
    at Array.map ()
    at resolveDependencies (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:18)
    at /Users/lucky/Projects/apps/eactNativeSalesapp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:269:33
    at Generator.next ()
    at asyncGeneratorStep (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
    at _next (/Users/lucky/Projects/apps/reactNativeSalesapp/node_modules/metro/src/DeltaBundler/traverseDependencies.js:107:9)
    BUNDLE [ios, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.