Cannot run examples on master: `warning is not a function`
See original GitHub issuereact-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'

Issue Analytics
- State:
- Created 8 years ago
- Comments:31 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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