nitin42 / react-perf-devtool

A browser developer tool extension to inspect performance of React components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

registerObserver is not a function

jjravleuven opened this issue · comments

TypeError: registerObserver is not a function
Module../src/index.js
src/index.js:16
  13 |   // do something with the measures
  14 | }
  15 | 
> 16 | registerObserver(options, callback)
  17 | 
  18 | ReactDOM.render(<App />, document.getElementById('root'))
  19 | 
View compiled
__webpack_require__
/Users/james/www/react-apps/react-complete-guide-eject/webpack/bootstrap:782
  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled
fn
/Users/james/www/react-apps/react-complete-guide-eject/webpack/bootstrap:150
  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);
      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled
0
http://localhost:3000/static/js/main.chunk.js:626:18
__webpack_require__
/Users/james/www/react-apps/react-complete-guide-eject/webpack/bootstrap:782
  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled
checkDeferredModules
/Users/james/www/react-apps/react-complete-guide-eject/webpack/bootstrap:45
  42 | 	}
  43 | 	if(fulfilled) {
  44 | 		deferredModules.splice(i--, 1);
> 45 | 		result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
     | ^  46 | 	}
  47 | }
  48 | return result;
View compiled
Array.webpackJsonpCallback [as push]
/Users/james/www/react-apps/react-complete-guide-eject/webpack/bootstrap:32
  29 | 	deferredModules.push.apply(deferredModules, executeModules || []);
  30 | 
  31 | 	// run deferred modules when all chunks ready
> 32 | 	return checkDeferredModules();
     | ^  33 | };
  34 | function checkDeferredModules() {
  35 | 	var result;
View compiled
(anonymous function)
http://localhost:3000/static/js/main.chunk.js:1:57
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.

Could you please attach your source code?