Skip to content
New issue

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

Got error "Cannot find module 'csstype'." #11301

Closed
Novalaina opened this issue May 9, 2018 · 0 comments
Closed

Got error "Cannot find module 'csstype'." #11301

Novalaina opened this issue May 9, 2018 · 0 comments

Comments

@Novalaina
Copy link

When upgrading from Material Ui next 1.0.0-beta.31 to 1.0.0-beta.46 I got the following error:

error TS2307: Cannot find module 'csstype'.

  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I should be able to compile the project with Typescript without errors.

Current Behavior

It doesn't compile.

Steps to Reproduce (for bugs)

Typescript react starter app that uses Material-UI beta.46.

Context

I was able to fix this by adding a dev dependency on "csstype": "^2.4.2", so it seems like your project is missing that dependency?

Your Environment

Project based on: https://github.com/Microsoft/TypeScript-React-Starter

Tech Version
Material-UI 1.0.0-beta.46
React 16.0.27
Typescript 2.5.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants