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?