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

Upgrading @material-ui/core to 4.6.0 breaks material-table

Open roseak opened this issue 7 years ago • 6 comments

Describe the bug After upgrading to 4.6.0 for @material-ui/core, material-table is breaking. I believe it has something to do with importing styles/theming, but unclear.

Also on the same error but with createTypography.js and createMuiTheme.js instead of createPalette.js

Module not found: Error: Can't resolve 'deepmerge' in '/Users/[...]/node_modules/material-table/node_modules/@material-ui/core/styles'
 @ /Users/[...]/node_modules/material-table/node_modules/@material-ui/core/styles/createPalette.js 17:40-60
 @ /Users/[...]/node_modules/material-table/node_modules/@material-ui/core/styles/createMuiTheme.js
 @ /Users/[...]/node_modules/material-table/node_modules/@material-ui/core/styles/defaultTheme.js
 @ /Users/[...]/node_modules/material-table/node_modules/@material-ui/core/styles/withStyles.js
 @ /Users/[...]/node_modules/material-table/dist/index.js```

roseak avatar Nov 08 '19 19:11 roseak

Strange, I haven't seen this yet in my project with 4.6 core... maybe its a certain material-table feature that when enabled causes an issue with 4.6?

jadbox avatar Nov 08 '19 19:11 jadbox

Not sure what the deal is, but it's only a problem in my files with material-table. If I install deepmerge, the errors go away. Maybe you have deepmerge already installed?

roseak avatar Nov 09 '19 00:11 roseak

Huh interesting, I do have deepmerge installed by virtue of another component using it.

yarn list deepmerge

yarn list v1.19.1
├─ [email protected]
└─ [email protected]
   └─ [email protected]

Seems like deepmerge should be added to material-table as a proper dep?

jadbox avatar Nov 09 '19 19:11 jadbox

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Jun 15 '20 11:06 stale[bot]

Has anything been done to fix this?

roseak avatar Jun 15 '20 15:06 roseak

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Sep 13 '20 15:09 stale[bot]