Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 6, 2022 · 3 comments
Open

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

ghost opened this issue Oct 6, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 6, 2022

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

@ghost
Copy link
Author

ghost commented Oct 6, 2022

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
Copy link

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

@Niklas-Liljendahl
Copy link

Same here, any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants