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

Console error while using Popover component on a React 16 application #7

Open
nandukalidindi opened this issue Nov 16, 2017 · 1 comment

Comments

@nandukalidindi
Copy link
Contributor

The error is two phased.

  • propTypes error on the react-overlays component because older version of it is used

  • After upgrading the react-overlays component to it's latest then in the application this error is thrown in the console. Also instead of showing a popover the application is navigated to a blank page.

invariant.js:42 Uncaught Error: _processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).
    at invariant (invariant.js:42)
    at Object.value (react-dom.development.js:6177)
    at Object._renderSubtreeIntoContainer (ReactMount.js:357)
    at Object.renderSubtreeIntoContainer [as unstable_renderSubtreeIntoContainer] (ReactMount.js:340)
    at Portal._this._renderOverlay (LegacyPortal.js:75)
    at Portal.componentDidMount (LegacyPortal.js:97)
    at commitLifeCycles (react-dom.development.js:8798)
    at commitAllLifeCycles (react-dom.development.js:9967)
    at HTMLUnknownElement.callCallback (react-dom.development.js:540)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:579)

screen shot 2017-11-16 at 11 59 40 am

@nandukalidindi
Copy link
Contributor Author

Possible fix #8

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

1 participant