Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React native / node issue: The package was successfully found. However, the package specifies a `main` module field that could not be resolved

$
0
0

I am new to node and React Native and I have an issue that I hope someone can help me resolve. I and another person are making a React Native application and currently I am trying to piece together a backend made by the other person with my frontend and I get the following error:

While trying to resolve module http from file /Users/alex/ParkME/node_modules/node-fetch/index.js, the package /Users/alex/ParkME/node_modules/http/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/alex/ParkME/node_modules/http/index.js. Indeed, none of these files exist:

  • /Users/alex/ParkME/node_modules/http/index.js(.native||.ios.expo.js|.native.expo.js|.expo.js|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.json|.native.expo.json|.expo.json|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  • /Users/alex/ParkME/node_modules/http/index.js/index(.native||.ios.expo.js|.native.expo.js|.expo.js|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.json|.native.expo.json|.expo.json|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx) Failed building JavaScript bundle.

Does anyone know what the issue might be?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>