SoftwareBrothers / better-docs

Beautiful toolbox for jsdoc generated documentation - with 'typescript', `category` and `component` plugins
MIT License
856 stars 127 forks source link

@component @parcel/core: ... does not export 'default' #228

Open ghost opened 1 year ago

ghost commented 1 year ago

I'm not using a default export for my components. Is there a way to generate documentation omitting this rule?

ghost commented 1 year ago

My Component

/**
 *
 * @component
 */
const SelectOption = () => {
  return (
    <>
      ...
    </>
  )
} export {SelectOption}

The error:

Error: Command failed: NODE_ENV=development parcel build docs/entry.js --dist-dir docs/build
@parcel/core: src/SelectOption.tsx does not export 'default'
  /Users/mac/react-proyect/docs/entry.js:25:10
    24 | 
  > 25 |   import Component0 from '../src/SelectOption.tsx';
  >    |          ^^^^^^^^^^
    26 | reactComponents['SelectOption'] = Component0;
limekiln commented 1 year ago

Having the same issue here, any help would be appreciated.

Niklas-Liljendahl commented 7 months ago

Same here, any ideas?