IssueRaiser

New error: Type of property 'defaultProps' circularly references itself in mapped type

https://github.com/nteract/nteract/blob/af734c46893146c617308f4ae1e40bf267e8875f/packages/connected-components/src/header-editor/styled.ts#L24 ``` packages/connected-components/src/header-editor/styled.ts:24:34 - 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...'. 24 export const EditableAuthorTag = styled(AuthorTag)` ~~~~~~~~~~~~~~~~~ ``` https://github.com/nteract/nteract/blob/af734c46893146c617308f4ae1e40bf267e8875f/packages/presentational-components/src/components/prompt.tsx#L85 Also, I'm seeing each of these errors printed twice. To repro: 1) `yarn` 2) `tsc -b -f` Note that it fails with a different (apparently unrelated) error in 3.8.

Posted by amcasey on Mar 25, 2020, 8:22 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Software)

New error: Type of property 'defaultProps' circularly references itself in mapped type

amcaseyMar 25, 2020, 8:22 PM

https://github.com/nteract/nteract/blob/af734c46893146c617308f4ae1e40bf267e8875f/packages/connected-components/src/header-editor/styled.ts#L24 ``` packages/connected-components/src/header-editor/styled.ts:24:34 - 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...'. 24 export const EditableAuthorTag = styled(AuthorTag)` ~~~~~~~~~~~~~~~~~ ``` https://github.com/nteract/nteract/blob/af734c46893146c617308f4ae1e40bf267e8875f/packages/presentational-components/src/components/prompt.tsx#L85 Also, I'm seeing each of these errors printed twice. To repro: 1) `yarn` 2) `tsc -b -f` Note that it fails with a different (apparently unrelated) error in 3.8.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue