Material-ui: Error Cannot find module '@material-ui/lab/Skeleton' after upgrading from 4.4.0 to 4.4.1

Created on 8 Sep 2019  路  7Comments  路  Source: mui-org/material-ui

  • [x] The issue is present in the latest release.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 馃槸

After upgrading from 4.4.0 to 4.4.1, I get the following error message: node_modules/@material-ui/core/Grid/Grid.d.ts:4:33 - error TS2307: Cannot find module '@material-ui/lab/Skeleton'.

Your Environment 馃寧

| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.4.1 |
| React | 16.9.0 |
| Browser | Chrome 76 |
| TypeScript | 3.5.3 |
| etc. | |

bug 馃悰 typescript

Most helpful comment

I can confirm the issue, this import is not supposed to be present:
https://github.com/mui-org/material-ui/blob/3f5c86b9236ac3f4e9a1fc14c864d5e4b95d4ba0/packages/material-ui/src/Grid/Grid.d.ts#L4

We should remove it.

All 7 comments

Installing the @material-ui/lab solved problem for me.
npm i @material-ui/lab
yarn add @material-ui/lab

Confirmed. It was solved for me also (for v4.4.1) with:
"@material-ui/core": "^4.4.1",
"@material-ui/lab": "^4.0.0-alpha.26",

Just to pull in a type that it doesn't use ...
Oops

I can confirm the issue, this import is not supposed to be present:
https://github.com/mui-org/material-ui/blob/3f5c86b9236ac3f4e9a1fc14c864d5e4b95d4ba0/packages/material-ui/src/Grid/Grid.d.ts#L4

We should remove it.

Did b968c9a375d2d71745fa0165ac0d8d77bef74bc6 fix it? Can we expect a hotfix release soon?

@MayhemYDG Yes, it should fix the issue. You can expect the fix to be released, before next Monday.

Thanks for the patience, the fix was released under v4.4.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

finaiized picture finaiized  路  3Comments

mb-copart picture mb-copart  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

zabojad picture zabojad  路  3Comments