material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Question] Using 0.x alongside with 1.0 react-transition-group

Open alexmbp opened this issue 8 years ago • 3 comments

I'm going to use both versions of MUI for some time (need to provide a kind of smooth and quick migration in the project). But I caught an error with components, that are using Ripple. For instance: image - checkbox.

I'm doing something wrong? Main issue - MUI 1 need react-transition-group ^2 instead of ^1. MUI 0.* works bad with ^2.

How do you think - is much effort needed to fix it? I'm going to fork project and take a look, but maybe there is some existing discussion.

alexmbp avatar Dec 19 '17 11:12 alexmbp

@alexmbp Material-UI v0.x relies on: https://github.com/mui-org/material-ui/blob/7529338fcc70df6b4823220277f8c2d2287c48fd/package.json#L58 And v1.x relies on: https://github.com/mui-org/material-ui/blob/5f50ef1db6c937f462c3544e4040826de3876596/package.json#L81

Your bundling solution should be able to pick the right dependency when needed. I personally don't have this issue with yarn + webpack.

oliviertassinari avatar Dec 19 '17 13:12 oliviertassinari

@alexmbp The only other option I can think of is upgrading the dependency on v0.x side.

oliviertassinari avatar Dec 19 '17 13:12 oliviertassinari

@oliviertassinari You are right. Everything is working. It was my webpack missconfiguration

resolve: {
    modules: [
      'node_modules',
      paths.appNodeModules,
      paths.appSrc,
    ],

Have forgot to add 'node_modules' and packages have been resolving only from root node_modules.

alexmbp avatar Dec 19 '17 13:12 alexmbp