ignite icon indicating copy to clipboard operation
ignite copied to clipboard

TypeError: o is not a function

Open xforcarlos opened this issue 3 years ago • 8 comments

What's going on? error when create app with ignite and i don't know how to follow this error in debug mode only app working fine in release

Screen Shot 2021-03-30 at 12 58 45 PM

ExceptionsManager.js:179 TypeError: o is not a function
    at r (index.js:1)
    at EventTarget.a (index.js:1)
    at EventTarget.dispatchEvent (event-target-shim.js:818)
    at EventTarget._setReadyState (FileReader.js:80)
    at FileReader.js:130
    at es.promise.js:114
    at flush (microtask.js:26)
    at tryCallOne (core.js:37)
    at core.js:123
    at JSTimers.js:274

Steps to reproduce

  1. init new app with npx ignite-cli new PizzaApp

ignite doctor results:

System
  platform           darwin                                                           
  arch               x64                                                              
  cpu                12 cores       Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz          
  directory          OurEducation   /Users/mahmoudhamdy/Desktop/work/our/OurEducation 

JavaScript (and globally-installed packages)
  node               15.5.1       /usr/local/bin/node 
  npm                7.3.0        /usr/local/bin/npm  
    axios            0.21.1                           
    detox-cli        18.0.0                           
    ignite-cli       6.6.0                            
    ios-deploy       1.11.3                           
    npm              7.3.0                            
    osmi-cli         1.2.0                            
    pod-install      0.1.18                           
  yarn               -            not installed       

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

Android
  java               1.8.0_282    /usr/bin/java 
  android home       -            undefined     

iOS
  xcode              12.3       
  cocoapods          1.10.1       /usr/local/bin/pod ```

xforcarlos avatar Mar 30 '21 11:03 xforcarlos

Also getting this issue.

Tj3n avatar Apr 01 '21 15:04 Tj3n

Apparently, it is a bug from Reactotron-react-native, but issue is still not resolved.

https://github.com/infinitered/reactotron-react-native/issues/768

pascal-mormin avatar Apr 21 '21 13:04 pascal-mormin

@xforcarlos I was able to run an app (expo also) with the latest version of Ignite (v6.12.2) without running into any issues. Can you please use the latest version for Ignite (v6.12.2) and confirm if this is still happening for you?

mazenchami avatar May 25 '21 15:05 mazenchami

Just restart the metro-server and the app will reload and error will be gone.... but I agree it is very annoying.

JeroenGoddijn avatar Jun 23 '21 22:06 JeroenGoddijn

Also getting this issue.

alantoa avatar Jul 14 '21 06:07 alantoa

Still looking into this -- it does look like it's an issue with Reactotron.

https://github.com/infinitered/reactotron-react-native/issues/768

jamonholmgren avatar Jul 14 '21 19:07 jamonholmgren

@mazenchami it still exist

xforcarlos avatar Jul 15 '21 07:07 xforcarlos

@jamonholmgren thanks man & good luck

xforcarlos avatar Jul 15 '21 07:07 xforcarlos

There has been a lot of changes since this issue last had activity. This is going to be closed for now, but please re-open if this still needs attention.

joshuayoes avatar Oct 04 '22 17:10 joshuayoes