ignite: Cannot find module '@babel/core', while trying to run PizzaApp example app

I followed the instructions to create a new app. Installation seemed to go fine. When I tried to run, I hiy the following error in Metro bundler:

Bundling `index.js`  [development, non-minified]  0.0% (0/1), failed.
error: bundling failed: Error: Cannot find module '@babel/core' (While processing preset: "/Users/***/PizzaApp/node_modules/babel-preset-react-native/index.js")
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/***/PizzaApp/node_modules/@babel/plugin-transform-block-scoping/lib/tdz.js:6:13)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

Any advice?


Steps to reproduce

npm install -g ignite-cli ignite new PizzaApp cd PizzaApp/ react-native run-ios


ignite doctor results:

  platform           darwin                                                                                                     
  arch               x64                                                                                                        
  cpu                4 cores                                                Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz  
  directory          /Users/***/PizzaApp                                                       

JavaScript
  node               8.11.1       /Users/***/.nvm/versions/node/v8.11.1/bin/node  
  npm                5.8.0        /Users/***/.nvm/versions/node/v8.11.1/bin/npm   
  yarn               0.16.1       /usr/local/bin/yarn                                

React Native
  react-native-cli   2.0.1       
  app rn version     0.50.4      

Ignite
  ignite             2.0.0        /Users/***/.nvm/versions/node/v8.11.1/bin/ignite

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@kevinvangelder: Forgot to say, thank you for trying to help me out 😀

Do you publish what environment you use for such testing?

Here is my babel-preset-react-native version, so not related to 5.0.0 changes: "babel-preset-react-native": "^3.0.2",

I know I am behind the times on several packages, but I was trying to be conservative when working to resurrect my project from 1+ year back.