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)
the expected behavior is to diplay the dialog like the exmple
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)
| Tech | Version |
|--------------|---------|
| Material-UI | v1.0.0 |
| React | 15.4.1 |
| browser | chrome |
| etc | |
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
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.