Quantcast
Channel: Could not find a declaration file for module 'material-ui/styles/MuiThemeProvider'? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by meds for Could not find a declaration file for module...

Ok I figured it out, in tsconfig.json under 'compilerOptions' visual-studio by default had its types set to ["webpack-env"], I needed to add "material-ui" to it or optionally just remove it:...

View Article



Answer by mersocarlin for Could not find a declaration file for module...

Use the default import from the same path.import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'

View Article

Could not find a declaration file for module...

I'm trying to use the react material-ui theme having installed it from npm, I get the following errors when I include 'import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";' in...

View Article

Answer by Tristan_Bagnulo for Could not find a declaration file for module...

The solution that worked for me which is med's answer above which I explain in more detail below.Open the tsconfig.json file. Add "types":"material-ui", within "compilerOptions": {}as...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images