React Native error - Cannot find module 'metro-react-native-babel-preset'

I created a React native app using "react-native init <App Name>" but received below error when try to run it in Simulator: Cannot find module 'metro-react-native-babel-preset'

I resolved the error by adding below line under "dependencies" in package.json.
    "@babel/runtime": "^7.0.0-beta.55"
 Run "npm i", and then run the app successfully. :)


Further Study

 
 

I had been studied the online course "The Complete React Native and Redux Course", it gave me the clear explanation and instruction with step by step procedures to learn the core knowledge to build React components for mobile devices. It's suitable for all levels. The course has sample code and completed projects in gitHub.com.

Instructor: Stephen Grider -  Engineering Architect, Stephen Grider has been building complex Javascript front ends for top corporations in the San Francisco Bay Area.


Comments

  1. Great blog.
    The information that you shared with your blog regarding react native and redux related courses and is really very specific and knowledgeable. It is very useful to understand the concept of react native.
    I was searching for the best react native app development company India and got this blog.
    Thanks for sharing such a great blog.

    ReplyDelete

Post a Comment

Popular posts from this blog

Top JavaScript courses helping you develop SPFx webPart with ReactJS and AngularJS

Effective LLM Prompting skills

Enable the Microsoft Power BI report file type (.pbix) in SharePoint Search