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

[Bug]: CSF: missing default export in file with default export #26547

Closed
grzegorzCieslik95 opened this issue Mar 18, 2024 · 0 comments
Closed

Comments

@grzegorzCieslik95
Copy link

Describe the bug

I have component like this

const Default: Story<CollectionActionModalProps> = args => {
  return <CollectionActionModal {...args} />;
};

export const CollectionActionModalStory: Meta<CollectionActionModalProps> = {
  render: Default,
  component: CollectionActionModal,
  decorators: [
    storybookRouterDecorator(),
  ],
  args: {
    confirm: action('action confirmed'),
  },
  parameters: {
    backgrounds: {
      default: 'dark',
    },
  },
};

export default CollectionActionModalStory;

Why I run storybook dev I have error CSF: missing default export

Can you explain me, why? i have default export from this file

To Reproduce

Use code from describe bug

System

Storybook Environment Info:

  System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M2 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.14.2 - /usr/local/bin/node
    Yarn: 1.22.18 - ~/workspace/kiwihr-frontend/node_modules/.bin/yarn
    npm: 9.5.0 - /usr/local/bin/npm <----- active
  Browsers:
    Chrome: 122.0.6261.129
    Firefox: 122.0.1
    Safari: 17.0
  npmPackages:
    @storybook/addon-actions: 7.6.10 => 7.6.10 
    @storybook/addon-essentials: 7.6.10 => 7.6.10 
    @storybook/react: 7.6.10 => 7.6.10 
    @storybook/react-webpack5: 7.6.10 => 7.6.10 
    eslint-plugin-storybook: 0.8.0 => 0.8.0 
    storybook: 7.6.10 => 7.6.10

Additional context

No response

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

No branches or pull requests

1 participant