Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

createGlobalStyle has an error on master #173

Closed
FluidSense opened this issue Sep 17, 2020 · 1 comment
Closed

createGlobalStyle has an error on master #173

FluidSense opened this issue Sep 17, 2020 · 1 comment
Labels

Comments

@FluidSense
Copy link
Contributor

FluidSense commented Sep 17, 2020

npm run lint-check fails with this error on a cleanly installed branch.

src/common/global.ts:5:28 - error TS2615: Type of property 'defaultProps' circularly references itself in mapped type 'Pick<ForwardRefExoticComponent<Pick<Pick<any, Exclude<keyof ReactDefaultizedProps<StyledComponentInnerComponent<WithC>, ComponentPropsWithRef<StyledComponentInnerComponent<WithC>>>, StyledComponentInnerAttrs<...> | ... 1 more ... | StyledComponentInnerAttrs<...>> | Exclude<...> | Exclude<...> | Exclude<...>> & Parti...'.

  5 export const GlobalStyle = createGlobalStyle`
                               ~~~~~~~~~~~~~~~~~~
  6   ${Reset}
    ~~~~~~~~~~
...
 52   }
    ~~~
 53 `;
    ~

src/common/global.ts:5:28 - error TS2615: Type of property 'defaultProps' circularly references itself in mapped type 'Pick<ForwardRefExoticComponent<Pick<Pick<any, Exclude<keyof ReactDefaultizedProps<StyledComponentInnerComponent<WithC>, ComponentPropsWithRef<StyledComponentInnerComponent<WithC>>>, any>> & Partial<...>, any> & { ...; } & WithChildrenIfReactComponentClass<...>>, "defaultProps" | ... 1 more ... | "$$typeof">'.

  5 export const GlobalStyle = createGlobalStyle`
                               ~~~~~~~~~~~~~~~~~~
  6   ${Reset}
    ~~~~~~~~~~
...
 52   }
    ~~~
 53 `;
    ~
@FluidSense FluidSense changed the title createGlobalStyle borked on master createGlobalStyle has an error on master Sep 17, 2020
@github-actions
Copy link

🎉 This issue has been resolved in version 0.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant