[x] I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior π―
We have a library that is based on MUI and for some reason. When we use that library in any project that we have, we keep getting the following error:
error TS2688: Cannot find type definition file for '@emotion/core'.
/// <reference types="@emotion/core" />
Additionally, some of the components get css property in them in Typescript and throw errors about type mismatching.
Currently, we are have to add skipLibChecks: true in our projects to disable these errors but we want to fix it at UI Kit level to never have this issue.
Please provide a minimal reproduction test case. This would help a lot π· .
A live example would be perfect. This codesandbox.io templatemay be a good starting point. Thank you!
Current Behavior π―
We have a library that is based on MUI and for some reason. When we use that library in any project that we have, we keep getting the following error:
Additionally, some of the components get
css
property in them in Typescript and throw errors about type mismatching.Currently, we are have to add
skipLibChecks: true
in our projects to disable these errors but we want to fix it at UI Kit level to never have this issue.Here is an example source code:
And here is the generated declaration file:
If you search in the generated file, you can see the "css" prop there as well as @emotion/core reference.
Expected Behavior π€
These errors should not happen since we are not using emotion anywhere in our code (we are using JSS).
Your Environment π