DEV Community

Discussion on: Tutorial: How to share code between iOS, Android & Web using React Native, react-native-web and monorepo

Collapse
 
mschipperheyn profile image
Marc Schipperheyn

My package manager responds to http://localhost:8081/packages/mobile/index.js but gives a 404 on http://localhost:8081/packages/mobile/index. Any ideas?

Collapse
 
mschipperheyn profile image
Marc Schipperheyn • Edited

I also see this error Error: Unable to resolve module ./packages/mobile/index from /Users/boo/project/packages/mobile/.: The module ./packages/mobile/index could not be found from /Users/boo/project/packages/mobile/.

Indeed, none of these files exist:
  * /Users/boo/project/packages/mobile/packages/mobile/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)

There seems to be a path set wrong. But it all looks ok at the code level