Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerObserver is not a function #59

Open
jjravleuven opened this issue Oct 26, 2018 · 3 comments
Open

registerObserver is not a function #59

jjravleuven opened this issue Oct 26, 2018 · 3 comments

Comments

@jjravleuven
Copy link

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.
@flxwu
Copy link
Collaborator

flxwu commented Oct 26, 2018

Could you please attach your source code?

@jjravleuven
Copy link
Author

jjravleuven commented Oct 26, 2018 via email

@jjravleuven
Copy link
Author

jjravleuven commented Oct 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants