Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Error: createStackNavigator() has been moved to react-navigation-stack. #311

Open
alvinisasi opened this issue Aug 21, 2020 · 2 comments
Open

Comments

@alvinisasi
Copy link

Hi, everyone! I was built a react-native app using Ignite Andross boilerplate and i found this error after i run command yarn start and yarn android in Ubuntu 18.04 terminal.

image

So, i tried to trace the createStackNavigator() module, and i know why i got this error. Turns out that the createStackNavigator () module imported from wrong library. Here i show you where the fault was happened :

In ignite/DevScreens/PluginExamplesScreen.js

  • import { createStackNavigator, createAppContainer } from 'react-navigation'

In ignite/DevScreens/PresentationScreen.js

  • import { createStackNavigator, createAppContainer } from 'react-navigation'

So i change that part to this in every module that i mentioned above :
import { createStackNavigator } from 'react-navigation-stack'

Can this error solved in boilerplate? So that ignite-andross user is not necessary to chage this part anymore.

Thank you for your attention everyone! Don't forget to wear the mask~

@alvinisasi
Copy link
Author

when i run ignite doctor :

(node:25200) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:25200) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:25200) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
System
  platform           linux                                                        
  arch               x64                                                          
  cpu                4 cores      AMD A10-8700P Radeon R6, 10 Compute Cores 4C+6G 
  directory          ignite       /home/greywolf/mobile-dev/shitter/ignite        

JavaScript
  node               14.7.0       /usr/local/bin/node           
  npm                6.14.7       /usr/local/bin/npm            
  yarn               1.22.4       /home/greywolf/.yarn/bin/yarn 

Ignite
  ignite-cli         3.5.2        /usr/local/bin/ignite                        
  ignite src         build        /usr/local/lib/node_modules/ignite-cli/build 
  generators                                                                   

Android
  java               11.0.8       /usr/bin/java 
  android home       -            undefined     

@shaksi
Copy link

shaksi commented Nov 29, 2020

do a search for "createStackNavigator," and for each instance remove it and below that declaration add the following

import { createStackNavigator } from 'react-navigation-stack'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants