This repository was archived by the owner on Mar 30, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 410
This repository was archived by the owner on Mar 30, 2022. It is now read-only.
App fails to start on Apple device #232
Copy link
Copy link
Open
Description
I followed the steps
- Cloned repo
- Checked the default branch to be next
- npm i
- npm start
No errors seen so far, when I scan the QR code from my Apple phone, I see an error on the screen and I see the following error in the console
Error: Asset not found: /Users/amit/dev/react-native-elements-app/assets/images/icon.png for platform: null at /Users/amit/dev/react-native-elements-app/node_modules/metro/src/Assets.js:188:13 at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/amit/dev/react-native-elements-app/node_modules/metro/src/Assets.js:52:24) at _next (/Users/amit/dev/react-native-elements-app/node_modules/metro/src/Assets.js:72:9) iOS Bundling failed 503ms While trying to resolve module `react-native-elements` from file `/Users/amit/dev/react-native-elements-app/App.tsx`, the package `/Users/amit/dev/react-native-elements-app/node_modules/react-native-elements/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/amit/dev/react-native-elements-app/node_modules/react-native-elements/dist/index.js`. Indeed, none of these files exist: * /Users/amit/dev/react-native-elements-app/node_modules/react-native-elements/dist/index.js(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json) * /Users/amit/dev/react-native-elements-app/node_modules/react-native-elements/dist/index.js/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json) Metadata
Metadata
Assignees
Labels
No labels