You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to import from material-ui/styles (any submodule actually) yields compilation errors from tsc when noImplicitAny is enabled.
(3,32): error TS7016: Could not find a declaration file for module 'material-ui/styles'. '/Users/shousper/Source/test/node_modules/material-ui/styles/index.js' implicitly has an 'any' type.
Try `npm install @types/material-ui/styles` if it exists or add a new declaration (.d.ts) file containing `declare module 'material-ui/styles';`
Steps to reproduce
yarn add material-ui@next typescript
echo 'import { createMuiTheme } from \'material-ui/styles\'' > index.ts
echo 'const x = createMuiTheme()' >> index.ts
yarn run tsc -- --noImplicitAny index.ts
Versions
Material-UI: 1.0.0-beta.6
React: N/A
Browser: N/A
The text was updated successfully, but these errors were encountered:
Problem description
Trying to import from
material-ui/styles
(any submodule actually) yields compilation errors fromtsc
whennoImplicitAny
is enabled.Steps to reproduce
Versions
The text was updated successfully, but these errors were encountered: