Material-ui: Uncaught TypeError: _reactDom.default.createPortal is not a function

Created on 23 May 2018  路  6Comments  路  Source: mui-org/material-ui

i get this error when i try to use Dialog in material-ui v1

Uncaught TypeError: _reactDom.default.createPortal is not a function
at Portal.render (Portal.js:106)
at eval (ReactCompositeComponent.js:796)
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:795)
at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:822)
at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:746)
at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:724)
at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:645)
at ReactCompositeComponentWrapper.performUpdateIfNecessary (ReactCompositeComponent.js:561)
at Object.performUpdateIfNecessary (ReactReconciler.js:157)

  • [x] This is a v1.x issue (v0.x is no longer maintained).
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior


the expected behavior is to diplay the dialog like the exmple

Current Behavior


Error:
Uncaught TypeError: _reactDom.default.createPortal is not a function
at Portal.render (Portal.js:106)
at eval (ReactCompositeComponent.js:796)
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:795)
at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:822)
at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:746)
at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:724)
at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:645)
at ReactCompositeComponentWrapper.performUpdateIfNecessary (ReactCompositeComponent.js:561)
at Object.performUpdateIfNecessary (ReactReconciler.js:157)

Context

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | v1.0.0 |
| React | 15.4.1 |
| browser | chrome |
| etc | |

question

Most helpful comment

Check the installation warning. We only support React > 16.3.0. You can always use the last v1 beta release if you can't upgrade React.

All 6 comments

Which bundler do you use?

we are using "webpack": "2.6.1"

I had the same issue my React version is 15.4.0 and webpack is 3.3.0

Check the installation warning. We only support React > 16.3.0. You can always use the last v1 beta release if you can't upgrade React.

Upgrading my react version to 16.3.0 or greater fixed the issue.

I got the same error My reactJS version is 16.13

Was this page helpful?
0 / 5 - 0 ratings

Related issues

activatedgeek picture activatedgeek  路  3Comments

reflog picture reflog  路  3Comments

zabojad picture zabojad  路  3Comments

revskill10 picture revskill10  路  3Comments

ghost picture ghost  路  3Comments