reactjs / reactjs/react-docgen
React docgen issue with react styleguidist
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.8k
- Forks
- 316
- Ø Merge
- 5 Std. 7 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Getting an error while creating a component library :
Warning: Cannot parse src/components/Inputs/Table/Table.js: Error: Plugin/Preset files are not allowed to export objects, only functions.
Table.js :
import React from 'react';
import { css } from 'emotion';
import './table.scss';
const tableCss = css
border: 1px solid black;
font-size: 20px;
;
const Table = ({
}) => {
(
| Company | Contact | Country |
|---|---|---|
| Alfreds Futterkiste | Maria Anders | Germany |
| Centro comercial Moctezuma | Francisco Chang | Mexico |
| Ernst Handel | Roland Mendel | Austria |
| Island Trading | Helen Bennett | UK |
| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |
| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |
export default Table;
I need to display props and methods on the component library.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Start with the provided src/components/Inputs/Table/Table.js example and the reported “Plugin/Preset files are not allowed to export objects” warning. Reproduce the parsing failure in the component-library setup, then verify that the component’s props and methods are extracted and displayed without the warning.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100