Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. ×
  2. ←→1 of 2 errors on the page
  3. TypeError: Cannot read property 'location' of undefined
  4. new Router
  5. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-router/es/Router.js:66
  6. 63 | }
  7. 64 |
  8. 65 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
  9. > 66 | match: _this.computeMatch(_this.props.history.location.pathname)
  10. | ^ 67 | }, _temp), _possibleConstructorReturn(_this, _ret);
  11. 68 | }
  12. 69 |
  13. View compiled
  14. constructClassInstance
  15. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:12960
  16. 12957 | new ctor(props, context); // eslint-disable-line no-new
  17. 12958 | }
  18. 12959 | }
  19. > 12960 | var instance = new ctor(props, context);
  20. | ^ 12961 | var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  21. 12962 | adoptClassInstance(workInProgress, instance);
  22. 12963 | {
  23. View compiled
  24. updateClassComponent
  25. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:14853
  26. 14850 | } // In the initial pass we might need to construct the instance.
  27. 14851 |
  28. 14852 |
  29. > 14853 | constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  30. | ^ 14854 | mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  31. 14855 | shouldUpdate = true;
  32. 14856 | } else if (current$$1 === null) {
  33. View compiled
  34. beginWork
  35. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:15716
  36. 15713 |
  37. 15714 | var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  38. 15715 |
  39. > 15716 | return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  40. | ^ 15717 | }
  41. 15718 |
  42. 15719 | case HostRoot:
  43. View compiled
  44. performUnitOfWork
  45. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:18750
  46. 18747 | startProfilerTimer(workInProgress);
  47. 18748 | }
  48. 18749 |
  49. > 18750 | next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  50. | ^ 18751 | workInProgress.memoizedProps = workInProgress.pendingProps;
  51. 18752 |
  52. 18753 | if (workInProgress.mode & ProfileMode) {
  53. View compiled
  54. workLoop
  55. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:18791
  56. 18788 | if (!isYieldy) {
  57. 18789 | // Flush work without yielding
  58. 18790 | while (nextUnitOfWork !== null) {
  59. > 18791 | nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  60. | ^ 18792 | }
  61. 18793 | } else {
  62. 18794 | // Flush asynchronous work until there's a higher priority event
  63. View compiled
  64. renderRoot
  65. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:18876
  66. 18873 |
  67. 18874 | do {
  68. 18875 | try {
  69. > 18876 | workLoop(isYieldy);
  70. | ^ 18877 | } catch (thrownValue) {
  71. 18878 | resetContextDependences();
  72. 18879 | resetHooks(); // Reset in case completion throws.
  73. View compiled
  74. performWorkOnRoot
  75. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19812
  76. 19809 | cancelTimeout(timeoutHandle);
  77. 19810 | }
  78. 19811 |
  79. > 19812 | renderRoot(root, isYieldy);
  80. | ^ 19813 | finishedWork = root.finishedWork;
  81. 19814 |
  82. 19815 | if (finishedWork !== null) {
  83. View compiled
  84. performWork
  85. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19722
  86. 19719 | }
  87. 19720 | } else {
  88. 19721 | while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
  89. > 19722 | performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
  90. | ^ 19723 | findHighestPriorityRoot();
  91. 19724 | }
  92. 19725 | } // We're done flushing work. Either we ran out of time in this callback,
  93. View compiled
  94. performSyncWork
  95. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19696
  96. 19693 | }
  97. 19694 |
  98. 19695 | function performSyncWork() {
  99. > 19696 | performWork(Sync, false);
  100. | ^ 19697 | }
  101. 19698 |
  102. 19699 | function performWork(minExpirationTime, isYieldy) {
  103. View compiled
  104. requestWork
  105. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19551
  106. 19548 |
  107. 19549 |
  108. 19550 | if (expirationTime === Sync) {
  109. > 19551 | performSyncWork();
  110. | ^ 19552 | } else {
  111. 19553 | scheduleCallbackWithExpirationTime(root, expirationTime);
  112. 19554 | }
  113. View compiled
  114. scheduleWork
  115. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19358
  116. 19355 | !isWorking || isCommitting$1 || // ...unless this is a different root than the one we're rendering.
  117. 19356 | nextRoot !== root) {
  118. 19357 | var rootExpirationTime = root.expirationTime;
  119. > 19358 | requestWork(root, rootExpirationTime);
  120. | ^ 19359 | }
  121. 19360 |
  122. 19361 | if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  123. View compiled
  124. scheduleRootUpdate
  125. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20062
  126. 20059 |
  127. 20060 | flushPassiveEffects();
  128. 20061 | enqueueUpdate(current$$1, update);
  129. > 20062 | scheduleWork(current$$1, expirationTime);
  130. | ^ 20063 | return expirationTime;
  131. 20064 | }
  132. 20065 |
  133. View compiled
  134. updateContainerAtExpirationTime
  135. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20088
  136. 20085 | container.pendingContext = context;
  137. 20086 | }
  138. 20087 |
  139. > 20088 | return scheduleRootUpdate(current$$1, element, expirationTime, callback);
  140. | ^ 20089 | }
  141. 20090 |
  142. 20091 | function findHostInstance(component) {
  143. View compiled
  144. updateContainer
  145. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20156
  146. 20153 | var current$$1 = container.current;
  147. 20154 | var currentTime = requestCurrentTime();
  148. 20155 | var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  149. > 20156 | return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
  150. | ^ 20157 | }
  151. 20158 |
  152. 20159 | function getPublicRootInstance(container) {
  153. View compiled
  154. ReactRoot.push../node_modules/react-dom/cjs/react-dom.development.js.ReactRoot.render
  155. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20435
  156. 20432 | work.then(callback);
  157. 20433 | }
  158. 20434 |
  159. > 20435 | updateContainer(children, root, null, work._onCommit);
  160. | ^ 20436 | return work;
  161. 20437 | };
  162. 20438 |
  163. View compiled
  164. (anonymous function)
  165. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20589
  166. 20586 | if (parentComponent != null) {
  167. 20587 | root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  168. 20588 | } else {
  169. > 20589 | root.render(children, callback);
  170. | ^ 20590 | }
  171. 20591 | });
  172. 20592 | } else {
  173. View compiled
  174. unbatchedUpdates
  175. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:19939
  176. 19936 | }
  177. 19937 | }
  178. 19938 |
  179. > 19939 | return fn(a);
  180. | ^ 19940 | } // TODO: Batching should be implemented at the renderer level, not within
  181. 19941 | // the reconciler.
  182. 19942 |
  183. View compiled
  184. legacyRenderSubtreeIntoContainer
  185. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20585
  186. 20582 | } // Initial mount should not be batched.
  187. 20583 |
  188. 20584 |
  189. > 20585 | unbatchedUpdates(function () {
  190. | ^ 20586 | if (parentComponent != null) {
  191. 20587 | root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  192. 20588 | } else {
  193. View compiled
  194. render
  195. D:/Documents/Web Programming/React/neis-guy-painting/node_modules/react-dom/cjs/react-dom.development.js:20652
  196. 20649 | return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  197. 20650 | },
  198. 20651 | render: function render(element, container, callback) {
  199. > 20652 | return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  200. | ^ 20653 | },
  201. 20654 | unstable_renderSubtreeIntoContainer: function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  202. 20655 | !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
  203. View compiled
  204. Module../src/index.js
  205. D:/Documents/Web Programming/React/neis-guy-painting/src/index.js:32
  206. 29 | }
  207. 30 | }*/
  208. 31 |
  209. > 32 | ReactDOM.render(<App />, document.getElementById('root'));
  210. 33 |
  211. 34 | // If you want your app to work offline and load faster, you can change
  212. 35 | // unregister() to register() below. Note this comes with some pitfalls.
  213. View compiled
  214. __webpack_require__
  215. D:/Documents/Web Programming/React/neis-guy-painting/webpack/bootstrap:782
  216. 779 | };
  217. 780 |
  218. 781 | // Execute the module function
  219. > 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
  220. | ^ 783 |
  221. 784 | // Flag the module as loaded
  222. 785 | module.l = true;
  223. View compiled
  224. fn
  225. D:/Documents/Web Programming/React/neis-guy-painting/webpack/bootstrap:150
  226. 147 | );
  227. 148 | hotCurrentParents = [];
  228. 149 | }
  229. > 150 | return __webpack_require__(request);
  230. | ^ 151 | };
  231. 152 | var ObjectFactory = function ObjectFactory(name) {
  232. 153 | return {
  233. View compiled
  234. 0
  235. http://localhost:3000/static/js/main.chunk.js:625:18
  236. __webpack_require__
  237. D:/Documents/Web Programming/React/neis-guy-painting/webpack/bootstrap:782
  238. 779 | };
  239. 780 |
  240. 781 | // Execute the module function
  241. > 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
  242. | ^ 783 |
  243. 784 | // Flag the module as loaded
  244. 785 | module.l = true;
  245. View compiled
  246. checkDeferredModules
  247. D:/Documents/Web Programming/React/neis-guy-painting/webpack/bootstrap:45
  248. 42 | }
  249. 43 | if(fulfilled) {
  250. 44 | deferredModules.splice(i--, 1);
  251. > 45 | result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
  252. | ^ 46 | }
  253. 47 | }
  254. 48 | return result;
  255. View compiled
  256. Array.webpackJsonpCallback [as push]
  257. D:/Documents/Web Programming/React/neis-guy-painting/webpack/bootstrap:32
  258. 29 | deferredModules.push.apply(deferredModules, executeModules || []);
  259. 30 |
  260. 31 | // run deferred modules when all chunks ready
  261. > 32 | return checkDeferredModules();
  262. | ^ 33 | };
  263. 34 | function checkDeferredModules() {
  264. 35 | var result;
  265. View compiled
  266. (anonymous function)
  267. http://localhost:3000/static/js/main.chunk.js:1:57
  268. This screen is visible only in development. It will not appear if the app crashes in production.
  269. Open your browser’s developer console to further inspect this error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement