Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

o is not a function. (In 'o()', 'o' is undefined) #394

Open
gruckionvit opened this issue Jan 26, 2021 · 5 comments
Open

o is not a function. (In 'o()', 'o' is undefined) #394

gruckionvit opened this issue Jan 26, 2021 · 5 comments

Comments

@gruckionvit
Copy link

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

Welllllll, it just might be. First, search the issues to make sure it's not already
here, and if not head over to http://community.infinite.red to
get some help. If you've identified that it's really an Ignite Bowser issue, then:

  • Explain what's going on and preferably how to replicate the issue (bonus points for a repro app)
  • Run ignite doctor and paste the result below, including the lines with 3 backticks
  • Delete these instructions! We don't want to look at them. ;)

What's going on?

When saving changes to code, whilst the expo app is already running within the expo client on the emulated iOS device, gives the following error

o is not a function. (In 'o()', 'o' is undefined)
* http://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false&minify=false:419672:33 in r
- node_modules/reactotron-react-native/dist/index.js:1:12361 in networking
- node_modules/event-target-shim/dist/event-target-shim.js:818:20 in EventTarget.prototype.dispatchEvent
- node_modules/react-native/Libraries/Blob/FileReader.js:80:6 in _setReadyState
- node_modules/react-native/Libraries/Blob/FileReader.js:130:8 in NativeFileReaderModule.readAsText.then$argument_0
- node_modules/@storybook/addons/node_modules/core-js/modules/es.promise.js:126:22 in microtask$argument_0
- node_modules/@storybook/addons/node_modules/core-js/internals/microtask.js:40:8 in <global>
- node_modules/react-native/node_modules/promise/setimmediate/core.js:37:13 in tryCallOne
- node_modules/react-native/node_modules/promise/setimmediate/core.js:123:24 in setImmediate$argument_0
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:130:14 in _callTimer
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:181:14 in _callImmediatesPass
- node_modules/react-native/Libraries/Core/Timers/JSTimers.js:441:30 in callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:387:6 in __callImmediates
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:135:6 in __guard$argument_0
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:364:10 in __guard
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:134:4 in flushedQueue
* [native code]:null in flushedQueue
* [native code]:null in invokeCallbackAndReturnFlushedQueue

Steps to reproduce

  1. Create an Ignite bowser project [version 3.5.3]
  2. Select with expo
  3. Run the app in iOS
  4. Make a change to the code and save the file
  5. Automatic refresh will trigger but you will also get the above error for o() not being defined.
  6. Expected no errors in the console

ignite doctor results:

➜  Vita-Innovate git:(feature/auth-screens-formik) ✗ ignite doctor
System
  platform           darwin                                                      
  arch               x64                                                         
  cpu                12 cores        Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz    
  directory          Vita-Innovate   /Users/stephen.rayner/workdir/Vita-Innovate 

JavaScript
  node               12.19.0      /usr/local/bin/node 
  npm                6.14.8       /usr/local/bin/npm  
  yarn               1.22.10      /usr/local/bin/yarn 

Ignite
  ignite-cli           3.5.3              /usr/local/bin/ignite                        
  ignite src           build              /usr/local/lib/node_modules/ignite-cli/build 
  navigation           react-navigation                                                
  generators                                                                           
                       component          ignite-ir-boilerplate                        
                       model              ignite-bowser                                
                       navigator          ignite-bowser                                
                       screen             ignite-ir-boilerplate                        
                       add                ignite-cli                                   
                       attach             ignite-cli                                   
                       doctor             ignite-cli                                   
                       easter             ignite-cli                                   
                       help               ignite-cli                                   
                       ignite             ignite-cli                                   
                       info               ignite-cli                                   
                       list               ignite-ir-boilerplate                        
                       new                ignite-cli                                   
                       plugin             ignite-cli                                   
                       remove             ignite-cli                                   
                       search             ignite-cli                                   
                       spork              ignite-cli                                   
                       container          ignite-ir-boilerplate                        
                       listview           ignite-ir-boilerplate                        
                       redux              ignite-ir-boilerplate                        
                       saga               ignite-ir-boilerplate                        
  createdWith          3.5.3                                                           
  boilerplate          ignite-bowser                                                   
  boilerplateVersion   5.4.1                                                           

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

iOS
  xcode              12.3       
  cocoapods          1.10.0       /usr/local/bin/pod 
@Tj3n
Copy link

Tj3n commented Mar 22, 2021

Same issue, have you found a way to fix this?

@aluferraz
Copy link

same issue here

1 similar comment
@geomen888
Copy link

same issue here

@MattGrouchy
Copy link

I have this issue as well

@Tj3n
Copy link

Tj3n commented Jun 14, 2021

Same issue: infinitered/reactotron-react-native#768

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

5 participants