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

[styled-engine-sc] Fix missing @types/hoist-non-react-statics causing styled returns any #43730

Closed
wants to merge 6 commits into from

Conversation

megos
Copy link
Contributor

@megos megos commented Sep 12, 2024

I moved @types/hoist-non-react-statics from devDependencies to dependencies.

The type definitions for styled-engine-sc depend on hoist-non-react-statics.

import * as hoistNonReactStatics from 'hoist-non-react-statics';

The @types/hoist-non-react-statics is not included in the dependencies, if this type definition is not installed, styled would return any.

styled_returns_any

I tried this in Material UI + CRA + styled-components (TypeScript) repository.

@zannager zannager added the package: styled-engine-sc Specific to styled-components label Sep 12, 2024
@zannager zannager requested a review from mnajdova September 12, 2024 12:59
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 1, 2024
@megos megos force-pushed the fix-styled-engine-sc-types branch from 8ea919a to eaa101f Compare October 2, 2024 04:32
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Oct 2, 2024
@mnajdova
Copy link
Member

mnajdova commented Oct 4, 2024

Can you please update to latest master to resolve the merge conflicts? Thanks!

@megos megos force-pushed the fix-styled-engine-sc-types branch from eaa101f to 01a9199 Compare October 4, 2024 12:22
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 4, 2024
@megos
Copy link
Contributor Author

megos commented Oct 4, 2024

Of course, I resolved the merge conflicts. Thanks for the review!

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 8, 2024
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Oct 8, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 11, 2024
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 27, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 28, 2024
@mnajdova
Copy link
Member

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.

@megos
Copy link
Contributor Author

megos commented Nov 12, 2024

Would you like me to re-create a PR?

@mnajdova
Copy link
Member

Would you like me to re-create a PR?

We can try that too, please ask me for a review.

@megos
Copy link
Contributor Author

megos commented Nov 13, 2024

Thanks. I re-created the PR in #44397.

@megos megos closed this Nov 13, 2024
@megos megos deleted the fix-styled-engine-sc-types branch November 14, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styled-engine-sc Specific to styled-components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants