question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run examples on master: `warning is not a function`

See original GitHub issue

react-native: master OS X: 10.11 Beta (15A244d) Xcode: 7.0 beta (7A121I)

(Yes, I know I’m running a lot of beta software, but it works on rn@0.8.0)

Build succeeds, but then I get this error:

warning is not a function. (In \'warning(\n!customBubblingEventTypes[directTypeName], \n\'Event cannot be both direct and bubbling: %s\', \ndirectTypeName)\', \'warning\' is an instance of Object)'

This is my console in Xcode:

2015-08-05 12:02:28.625 [error][tid:com.facebook.React.JavaScript] 'Error: warning is not a function. (In \'warning(\n!customBubblingEventTypes[directTypeName], \n\'Event cannot be both direct and bubbling: %s\', \ndirectTypeName)\', \'warning\' is an instance of Object)\n stack: \n  <unknown>  UIExplorerApp.ios…:34577\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:24647\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1643\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1621\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1529\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1450\n  require    UIExplorerApp.ios…:254\n  require    UIExplorerApp.ios…:200\n  <unknown>  UIExplorerApp.ios…:80247\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 34577\n message: warning is not a function. (In \'warning(\n!customBubblingEventTypes[directTypeName], \n\'Event cannot be both direct and bubbling: %s\', \ndirectTypeName)\', \'warning\' is an instance of Object)'
2015-08-05 12:02:28.628 [error][tid:com.facebook.React.JavaScript] 'Error: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy\n stack: \n  ensureInjected  UIExplorerApp.ios…:25825\n  batchedUpdates  UIExplorerApp.ios…:25902\n  <unknown>       UIExplorerApp.ios…:25051\n  guard           UIExplorerApp.ios…:25008\n  processBatch    UIExplorerApp.ios…:25050\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 2071\n message: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy'
2015-08-05 12:02:38.545 [error][tid:com.facebook.React.JavaScript] 'Error: warning is not a function. (In \'warning(\n!customBubblingEventTypes[directTypeName], \n\'Event cannot be both direct and bubbling: %s\', \ndirectTypeName)\', \'warning\' is an instance of Object)\n stack: \n  <unknown>  UIExplorerApp.ios…:34577\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:24647\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1643\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1621\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1529\n  require    UIExplorerApp.ios…:254\n  <unknown>  UIExplorerApp.ios…:1450\n  require    UIExplorerApp.ios…:254\n  require    UIExplorerApp.ios…:200\n  <unknown>  UIExplorerApp.ios…:80247\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 34577\n message: warning is not a function. (In \'warning(\n!customBubblingEventTypes[directTypeName], \n\'Event cannot be both direct and bubbling: %s\', \ndirectTypeName)\', \'warning\' is an instance of Object)'
2015-08-05 12:02:38.548 [error][tid:com.facebook.React.JavaScript] 'Error: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy\n stack: \n  ensureInjected  UIExplorerApp.ios…:25825\n  batchedUpdates  UIExplorerApp.ios…:25902\n  <unknown>       UIExplorerApp.ios…:25051\n  guard           UIExplorerApp.ios…:25008\n  processBatch    UIExplorerApp.ios…:25050\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 2071\n message: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy'
2015-08-05 12:02:38.604 [error][tid:com.facebook.React.JavaScript] 'Error: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy\n stack: \n  ensureInjected  UIExplorerApp.ios…:25825\n  batchedUpdates  UIExplorerApp.ios…:25902\n  <unknown>       UIExplorerApp.ios…:25051\n  guard           UIExplorerApp.ios…:25008\n  processBatch    UIExplorerApp.ios…:25050\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 2071\n message: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy'
2015-08-05 12:02:38.698 [error][tid:com.facebook.React.JavaScript] 'Error: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy\n stack: \n  ensureInjected  UIExplorerApp.ios…:25825\n  batchedUpdates  UIExplorerApp.ios…:25902\n  <unknown>       UIExplorerApp.ios…:25051\n  guard           UIExplorerApp.ios…:25008\n  processBatch    UIExplorerApp.ios…:25050\n URL: http://localhost:8081/Examples/UIExplorer/UIExplorerApp.ios.includeRequire.runModule.bundle?dev=true\n line: 2071\n message: Invariant Violation: ReactUpdates: must inject a reconcile transaction class and batching strategy'
screen shot 2015-08-05 at 12 14 19

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:31 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
PascalGiesslercommented, Sep 12, 2015

Same issue for me. Just delete the file node_modules/react-native/node_modules/react-tools/docs/js/react.js and everything is fine. Thanks to @almost.

0reactions
prakas25commented, Aug 30, 2017

I encountered the same issue, what i discovered was in recent versions of react native(in Debug Mode) you have to keep “JS Dev Mode” on, without it you will face this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object.fromEntries is not a function error when using chakra-ui ...
I had to update my node version, which was at v10.17.0. I updated it to v14.17.0!
Read more >
Q: What does the Master warning light on the dash mean?
The Master Warning Light is usually accompanied by another warning light, and indicates that one or more warning systems have been detected.
Read more >
Why do I get the error message 'Attempt to execute SCRIPT as ...
You are attempting to call a script file as though it were a function file by passing arguments to it. Common causes: 1....
Read more >
Buildifier warnings - bazelbuild/buildtools - GitHub
bzl file has a docstring stating that it's deprecated, i.e. it contains a Deprecated: section. The convention for function docstrings is described by...
Read more >
CHAPTER 4 MASTER WARNING SYSTEM - SmartCockpit
The Mustang master warning system is pri- marily a function of the G1000 avionics sys- tem. The CAS displays warning, caution, and advisory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found