-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Typescript error: TS2694 - "no exported member RefObject" in @material-ui/core v.1.x #11643
Comments
I was able to resolve this error by updating to Typescript 2.9.1, however now I'm getting a different error:
|
@danbergman Reference issue #11669 for a fix. Looks like it's been fixed but the fix hasn't made it to release yet. In the mean time, simply removing the string requirement for the key type in Omit should get rid of the issue. |
Upgrading to typescript 2.9.1 did not work for me. I'm on |
@JakeDluhy Same here, I also tried to add the I also tried with the latest dev version of typescript 3. I just can't make my code compile. Does anyone have a solution? @lummish What versions do you use? |
It's more of a problem with your version of
declare namespace React {
//
// React Elements
// ----------------------------------------------------------------------
type ReactType<P = any> = string | ComponentType<P>;
type ComponentType<P = {}> = ComponentClass<P> | StatelessComponent<P>;
type Key = string | number;
interface RefObject<T> {
readonly current: T | null;
} Check your |
@oliviertassinari, I think this issue can be closed if there is no further update / report. |
I think this is mainly a TypeScript issue? I've attempted to upgrade to both material-ui v1.0 and v1.1 using TypeScript 2.8.3, but I'm unable to compile and run.
Full error:
in [at-loader] ./node_modules/@material-ui/core/styles/withStyles.d.ts:46:37
TS2694: Namespace 'React' has no exported member 'RefObject'.
Your Environment
The text was updated successfully, but these errors were encountered: