@mui/material@5.8.6 includes incorrect .d.ts files
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
https://unpkg.com/@mui/material@5.8.6/styles/CssVarsProvider.d.ts

Expected behavior 🤔
https://unpkg.com/@mui/material@5.8.5/styles/CssVarsProvider.d.ts

Steps to reproduce 🕹
Steps:
- Update MUI to the latest 5.8.6 version
- Run
tsc -b
- Got error
error TS2307: Cannot find module 'packages/mui-system/src/cssVars/createCssVarsProvider' or its corresponding type declarations.
Context 🔦
N/A
Your environment 🌎
npx @mui/envinfo
System:
OS: macOS 12.4
Binaries:
Node: 16.15.0 - /opt/homebrew/opt/node@16/bin/node
Yarn: Not Found
npm: 8.5.5 - /opt/homebrew/opt/node@16/bin/npm
Browsers:
Chrome: 103.0.5060.53
Edge: Not Found
Firefox: 101.0.1
Safari: 15.5
npmPackages:
typescript: ~4.7.3 => 4.7.3
Issue Analytics
- State:
- Created a year ago
- Reactions:12
- Comments:7 (2 by maintainers)
Top Results From Across the Web
About "*.d.ts" in TypeScript - Stack Overflow
The "d.ts" file is used to provide typescript type information about an API that's written in JavaScript. The idea is that you're using...
Read more >Documentation - Creating .d.ts Files from .js files - TypeScript
Run the compiler. You can learn how to do this in our installation page. You want to make sure these files are included...
Read more >What is a “.d.ts” file in TypeScript? - Ohans Emmanuel's Blog
d.ts files are called type declaration files. They exist for one purpose ... The Typescript error spotting the wrong property access "ciil".
Read more >Configuring a .d.ts rollup - API Extractor
To enable .d.ts rollup generation, you simply need to set ... The TSDoc project has considered this problem, and its tsdoc-metadata.json file is...
Read more >Type Declarations
d.ts files. TypeScript has two main kinds of files. .ts files are implementation files that contain types and executable code. These are ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The fix is about to be merged to master. We will release it on Monday with 5.8.7.
I have this issue as well. As a workaround I have pinned the version number in my package.json to 5.8.5 like this:
Before:
"@mui/material": "^5.x.x"
After:
"@mui/material": "5.8.5"