question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@mui/material@5.8.6 includes incorrect .d.ts files

See original GitHub issue

Duplicates

  • 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

image

Expected behavior 🤔

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

image

Steps to reproduce 🕹

Steps:

  1. Update MUI to the latest 5.8.6 version
  2. Run tsc -b
  3. 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:closed
  • Created a year ago
  • Reactions:12
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
michaldudakcommented, Jul 1, 2022

The fix is about to be merged to master. We will release it on Monday with 5.8.7.

1reaction
OscarVantagePOScommented, Jun 30, 2022

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"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found