reactjs / reactjs/react-docgen
React docgen issue with react styleguidist
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 3.8k
- Fork
- 316
- Merge medio
- 5h 7m
- PR unite (30g)
- 4
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- documentation
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100