anuraghazra / anuraghazra/BugVilla

TypeScript error

Ouverte
#30 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
232
Forks
73
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

TypeScript error occurred on `cd client && npm run build`

- `Node.js`: 12.18.4
- `npm`: 6.14.8
- `OS`: Debian 10.6

```node
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, ComponentPropsWithRef>>, 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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.