better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

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

Open ghost opened this issue 3 years ago • 3 comments

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

ghost avatar Oct 06 '22 22:10 ghost

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;

ghost avatar Oct 06 '22 23:10 ghost

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

limekiln avatar Dec 16 '22 09:12 limekiln

Same here, any ideas?

Niklas-Liljendahl avatar Feb 01 '24 12:02 Niklas-Liljendahl