Material-ui: Material-UI compatibility with React V16

Created on 17 Aug 2017  路  5Comments  路  Source: mui-org/material-ui

Problem description

Upgrading to React V16 throws error: this.updater.enqueueCallback is not a function

Steps to reproduce

yarn add react@next react-dom@next

Versions

  • Material-UI: v1.0.0-beta.5
  • React: @next
  • Browser: Chrome

Description

When clicking a button, dropdown etc. this.updater.enqueueCallback is not a function exception is thrown.

Console says the following:
The above error occurred in the Transition component

Images & references

screen shot 2017-08-17 at 9 03 37 am

bug 馃悰 external dependency

Most helpful comment

I have experienced the same issue, please follow https://github.com/reactjs/react-transition-group/issues/151

All 5 comments

I have experienced the same issue, please follow https://github.com/reactjs/react-transition-group/issues/151

In case anyone else stumbles across this, the solution that worked for me was

  • delete node_modules
  • add the following to my package.json
  "resolutions": {
    "react": "16.0.0",
    "react-dom": "16.0.0"
  },
  • then yarn install again

This answer _is_ in the link provided above but it isn't clear what this link is actually referring to (there are several solutions mentioned)

I still get this error even after adding the suggested resolutions section on package.json. Any ideas?

Update: I got the error because I was on React 16.1.0. I rolled back to 16.0.0 and it's fine now. There's still a problem though, with upgrading react to the version I was in.

also try to update yarn for example I had the error with yarn 1.2.0 after the update to 1.2.1 it's working fine.

Yes but surely this means everyone on a project will have to do this ? Why not fix the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zabojad picture zabojad  路  3Comments

finaiized picture finaiized  路  3Comments

reflog picture reflog  路  3Comments

mb-copart picture mb-copart  路  3Comments

activatedgeek picture activatedgeek  路  3Comments