This is common issue among react native developer .
Reasons of this
- Node Package mismatch (95% of the time )
- .gitignore file not available
SOlution
1.Delete node_modules , Delete package_lock.json and then do npm install on fresh package.json ( THis will fix your problem most of the time)
If the issue is not fixed
- Create new project
- Add dependencies(only) from your package.json and then do npm install
- Run the app
Try building again this will work for most of cases
for git error just initialize git using
"git init"
Top comments (0)