infinitered / ignite

Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more! 9 years of continuous development and counting.
MIT License
17.7k stars 1.4k forks source link

Invariant Violation: Native module cannot be null." on Fresh Bowser Scaffold #1529

Closed JimLynchCodes closed 3 years ago

JimLynchCodes commented 4 years ago

Hey there! Ignite CLI seems to be having a problem, eh?

Scaffolded a project with: ingite new MyNewIgniteBowser and chose Bowser with the e2e testing.

When I run react-native run-ios the simulator starts up with this error:

Invariant Violation: Native module cannot be null." on Fresh Bowser Scaffold

Screen Shot 2020-01-25 at 3 21 21 PM

ignite doctor results:

System
  platform           darwin                                                                                                                            
  arch               x64                                                                                                                               
  cpu                12 cores            Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz                                                                      
  directory          MyNewIgniteBowser   /Users/jim/Git-Projects/Fun-With-React-Native-2020/fun-with-ignite-bowser/MyNewIgniteBowser/MyNewIgniteBowser 

JavaScript
  node               8.17.0       /Users/jim/.nvm/versions/node/v8.17.0/bin/node 
  npm                6.13.4       /Users/jim/.nvm/versions/node/v8.17.0/bin/npm  
  yarn               1.21.1       /Users/jim/.nvm/versions/node/v8.17.0/bin/yarn 

Ignite
  ignite-cli         3.5.1                                                                                                        /usr/local/bin/ignite                                        
  ignite src         build                                                                                                        /Users/jim/.config/yarn/global/node_modules/ignite-cli/build 
  navigation         react-navigation                                                                                                                                                          
  generators         {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}                                                                

Android
  java               1.8.0_232    /usr/bin/java                
  android home       -            /usr/local/share/android-sdk 

iOS
  xcode              11.3.1     
  cocoapods          1.8.4        /usr/local/bin/pod 
Drzaln commented 4 years ago

have you run pod install on ios folder?

JimLynchCodes commented 4 years ago

thanks @Drzaln! Yes, I ran pod install but I'm still getting these errors! :(

morgandonze commented 4 years ago

Hi @JimLynchCodes, sorry you're having trouble with Ignite. I'll see if I can reproduce with your setup.

JimLynchCodes commented 4 years ago

Thanks @mlaco

I just tried scaffolding a fresh ignite Bowser app, but it's still just giving me strange errors when it tries to start up...

Screen Shot 2020-02-09 at 11 21 21 AM

ignite doctor:

System
  platform           darwin                                                                                                    
  arch               x64                                                                                                       
  cpu                12 cores            Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz                                              
  directory          MyNewIgniteBowser   /Users/jim/Git-Projects/Fun-With-React-Native-2020/fun-2020-feb-fun/MyNewIgniteBowser 

JavaScript
  node               12.14.1      /Users/jim/.nvm/versions/node/v12.14.1/bin/node 
  npm                6.13.4       /Users/jim/.nvm/versions/node/v12.14.1/bin/npm  
  yarn               1.21.1       /Users/jim/.nvm/versions/node/v12.14.1/bin/yarn 

Ignite
  ignite-cli           3.5.1                                                                                                        /usr/local/bin/ignite                                        
  ignite src           build                                                                                                        /Users/jim/.config/yarn/global/node_modules/ignite-cli/build 
  navigation           react-navigation                                                                                                                                                          
  generators           {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}                                                                
  createdWith          3.5.1                                                                                                                                                                     
  boilerplate          ignite-bowser                                                                                                                                                             
  boilerplateVersion   4.13.0                                                                                                                                                                    

Android
  java               1.8.0_232    /usr/bin/java                
  android home       -            /usr/local/share/android-sdk 

iOS
  xcode              11.3.1     
  cocoapods          1.8.4        /usr/local/bin/pod   
morgandonze commented 4 years ago

@JimLynchCodes it looks like that error might have something to do with Jest. Do you have that installed?

JimLynchCodes commented 4 years ago

@mlaco what do you mean "have jest installed"?

I've always only encountered Jest as a dev dependency. Do I need to have it installed globally for ignite to work properly?

bryanstearns commented 3 years ago

Closing as stale - @JimLynchCodes, please reopen if this is still a problem with current Ignite!