I have installed react native using ::
expo init AwesomeProject
Everything works fine, untill I install and NPM package. I created three pages without installing new package. When I installed Vector icons for react native using ::
npm i react-native-vector-icons
I get alots of warning when Command is done ::
npm WARN [email protected] requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
But package seems to be installed ::
- [email protected] added 47 packages from 29 contributors, removed 329 packages, updated 658 packages and audited 21565 packages in 83.604s found 0 vulnerabilities
After that When I run :: expo start I Get following error ::
[16:19:03] Error: React native is not installed. Please run `npm install` in your project directory.
[16:19:03] Couldn't start project. Please fix the errors and restart the project.
Now as per error i ran npm install and then expo start.
everything seems to be fine, project starts running on expo emulator. BUT when I edit anything and save it produces another error ::
Error
16:25
undefined
Error
16:25
Building JavaScript bundle: error
Info
16:25
Building JavaScript bundle: 99%
and emulator turns red with unclear error as in screenshot attached: Is there any mistake I made that produced that error. Please let me know the fix so that I can install npm packages run with react native. Help appriciated