-
-
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
[styled-engine-sc] Fix missing @types/hoist-non-react-statics
causing styled
returns any
#43730
Conversation
8ea919a
to
eaa101f
Compare
Can you please update to latest master to resolve the merge conflicts? Thanks! |
…ng `styled` returns any
eaa101f
to
01a9199
Compare
Of course, I resolved the merge conflicts. Thanks for the review! |
For some reason the CI is stuck on this PR. I can't trigger it, I will open a new PR with the change. Sorry about the delay. |
Would you like me to re-create a PR? |
We can try that too, please ask me for a review. |
Thanks. I re-created the PR in #44397. |
I moved
@types/hoist-non-react-statics
from devDependencies to dependencies.The type definitions for
styled-engine-sc
depend onhoist-non-react-statics
.material-ui/packages/mui-styled-engine-sc/src/index.d.ts
Line 3 in 4732610
The
@types/hoist-non-react-statics
is not included in the dependencies, if this type definition is not installed,styled
would return any.I tried this in Material UI + CRA + styled-components (TypeScript) repository.