spacemeshos / cosmic

🌱🌌 Seed for a universal (native iOS, native Android, web, desktop) app based on react native web, redux and Typescript
MIT License
32 stars 10 forks source link

Fix module error on all os #6

Closed iamonuwa closed 5 years ago

iamonuwa commented 5 years ago

If you encounter this type of error, Ambiguous module resolution from/Users/avive/dev/cosmic/src/index.tsx: The namereact-native` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these: /Users/avive/dev/cosmic/dist/mac/cosmic.app/Contents/Resources/app.asar.unpacked/node_modules/react-native/package.json (package) /Users/avive/dev/cosmic/node_modules/react-native/package.json (package) User this command first rm -rf /tmp/haste-map-* and rebuild