-
-
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
[docs] Fix typechecking #15501
[docs] Fix typechecking #15501
Conversation
What does this accomplish? What files didn't we typecheck before? |
It checks all files, compared to what happens now. |
Could you explain why these are invalid imports? Our demos are relying on them so it seems like they're fine. |
We can't verify if that isn't an issue with the editor. Those can e.g use different typescript versions. Can you provide a clean repository that fails on a build step? |
VSCode is set to use the same version as the repo uses (3.2.2)
No, it works perfectly fine other projects. It's only from the docs folder it's having issues. |
@eps1lon Turns out |
No bundle size changes comparing e36d33a...960e17e |
Well I have no idea what happened but it seems like our docs never type-checked properly anything related to |
That's what I've been trying to get across xD |
@merceyz Yeah I'm super grateful for this. I had a lot of assumptions about our demos that were basically not true. I'm still not sure why this happened but at least we know what's wrong now. I think we should rather use --- a/tsconfig.json
+++ b/tsconfig.json
@@ -17,6 +17,8 @@
"@material-ui/core/*": ["./material-ui/src/*"],
"@material-ui/lab": ["./material-ui-lab/src"],
"@material-ui/lab/*": ["./material-ui-lab/src/*"],
+ "@material-ui/styles": ["./material-ui-styles/src"],
+ "@material-ui/styles/*": ["./material-ui-styles/src/*"],
"@material-ui/system": ["./material-ui-system/src"]
}
}, on the root tsconfig and add the |
@eps1lon Agreed. Now the question is, what to do about the type inference issues, it's fixed in newer versions of typescript. |
The error at |
@material-ui/styles
alias totsconfig.json
as docs failed to find it and tslint silently ignored the issue@material-ui/system/css