We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript compilation fails with
import { ThemeProvider } from '@material-ui/core'
Because ThemeProvider is not exported. However, ThemeProvider exists in index.js and the same import works with a JavaScript source.
ThemeProvider
index.js
Import should work as in JavaScript
See current behavior
A look into the generated index.d.ts, shows that MuiThemeProvider is exported but ThemeProvider is not. This could be related to #16490 and #16489
index.d.ts
MuiThemeProvider
The index.js has both.
So far my workaround is to import MuiThemeProvider as ThemeProvider, but it will be good to allow just ThemeProvider to match the docs.
MuiThemeProvider as ThemeProvider
The text was updated successfully, but these errors were encountered:
Thanks for the issue. As far as I can see, it will be solved in the next release, with #16490. Do you confirm?
Sorry, something went wrong.
No branches or pull requests
Current Behavior 😯
TypeScript compilation fails with
Because
ThemeProvider
is not exported. However,ThemeProvider
exists inindex.js
and the same import works with a JavaScript source.Expected Behavior 🤔
Import should work as in JavaScript
Steps to Reproduce 🕹
See current behavior
Context 🔦
A look into the generated
index.d.ts
, shows thatMuiThemeProvider
is exported butThemeProvider
is not. This could be related to #16490 and #16489The
index.js
has both.So far my workaround is to import
MuiThemeProvider as ThemeProvider
, but it will be good to allow justThemeProvider
to match the docs.Your Environment 🌎
The text was updated successfully, but these errors were encountered: