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

Open
wants to merge 5 commits into
base: master
Choose a base branch
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
@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
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