Skip to content

TypeScript error #30

@mzch

Description

@mzch

TypeScript error occurred on cd client && npm run build

  • Node.js: 12.18.4
  • npm: 6.14.8
  • OS: Debian 10.6
bugvilla@de:~/BugVilla/client$ npm run build

> client@0.1.0 build /srv/bugvilla/BugVilla/client
> react-scripts build

Creating an optimized production build...
Failed to compile.

/srv/bugvilla/BugVilla/client/src/@bug-ui/Button.tsx
TypeScript error in /srv/bugvilla/BugVilla/client/src/@bug-ui/Button.tsx(95,28):
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" | ... 2 more ... | "$$typeof">'.  TS2615

    93 |   right: `margin-left: auto;`
    94 | };
  > 95 | export const ButtonGroup = styled(Flex)<{ float?: string }>`
       |                            ^
    96 |   width: fit-content;
    97 |
    98 |   ${p => ButtonGroupFloat[p.float || 'right']}


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /srv/bugvilla/.npm/_logs/2020-10-10T03_37_29_718Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions