Open building39 opened 6 years ago
Stack: Phoenix 1.3 Elixir 1.6 Erlang/OTP 20
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] Interactive Elixir (1.6.0) - press Ctrl+C to exit (type h() ENTER for help) $ node -v v8.9.4 $ npm view react version 16.2.0 $ npm view react-router version 4.2.0 $ npm view redux version 3.7.2 $ npm view redux-thunk version 2.2.0 $ npm view redux-form version 7.2.3 $ npm view aphrodite version 1.2.5``` Using these latest packages, ```npm start``` produces this in the browser: ```TypeError: Cannot read property 'object' of undefined ./node_modules/react-broadcast/Broadcast.js node_modules/react-broadcast/Broadcast.js:104 101 | }(_react2.default.Component); 102 | 103 | Broadcast.contextTypes = { > 104 | broadcasts: _react.PropTypes.object 105 | }; 106 | Broadcast.childContextTypes = { 107 | broadcasts: _react.PropTypes.object.isRequired View compiled __webpack_require__ /data/git/sling/web/webpack/bootstrap 84d4f895ef3293cb2ab4:678 675 | }; 676 | 677 | // Execute the module function > 678 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId)); 679 | 680 | // Flag the module as loaded 681 | module.l = true; View compiled fn /data/git/sling/web/webpack/bootstrap 84d4f895ef3293cb2ab4:88 85 | console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId); 86 | hotCurrentParents = []; 87 | } > 88 | return __webpack_require__(request); 89 | }; 90 | var ObjectFactory = function ObjectFactory(name) { 91 | return { View compiled ./node_modules/react-broadcast/index.js node_modules/react-broadcast/index.js:6 3 | exports.__esModule = true; 4 | exports.Subscriber = exports.Broadcast = undefined; 5 | > 6 | var _Broadcast2 = require('./Broadcast'); 7 | 8 | var _Broadcast3 = _interopRequireDefault(_Broadcast2); 9 | View compiled __webpack_require__ /data/git/sling/web/webpack/bootstrap 84d4f895ef3293cb2ab4:678 675 | }; 676 | 677 | // Execute the module function > 678 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId)); 679 | 680 | // Flag the module as loaded 681 | module.l = true; View compiled fn /data/git/sling/web/webpack/bootstrap 84d4f895ef3293cb2ab4:88 85 | console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId); 86 | hotCurrentParents = []; 87 | } > 88 | return __webpack_require__(request); 89 | }; 90 | var ObjectFactory = function ObjectFactory(name) { 91 | return { View compiled ./node_modules/react-router/Broadcasts.js node_modules/react-router/Broadcasts.js:12 ...```
Same error for me, did you find any solution?
@karlpet Upgrade the react router version "react-router": "4.2.0"
It did not work
Stack: Phoenix 1.3 Elixir 1.6 Erlang/OTP 20