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

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

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 31 (10 by maintainers)

Most upvoted comments

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.