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

Error when building #13

Open
Lechevallier opened this issue Jan 26, 2023 · 1 comment
Open

Error when building #13

Lechevallier opened this issue Jan 26, 2023 · 1 comment

Comments

@Lechevallier
Copy link

Just cloned the project, ran npm i && npm run rollup

(!) Plugin typescript: @rollup/plugin-typescript TS4023: Exported variable 'LoggedOut' has or is using name 'PageProps' from external module "/Users/maximelechevallier/Documents/MyProjects/template-react-component-library/src/stories/Page" but cannot be named.
src/stories/Page.stories.tsx: (20:14)

20 export const LoggedOut = Template.bind({});
@treckstar
Copy link

Had the same issue. I got several TS4023 errors.

In the README.md file, it says:

You will also notice that it creates a stories directory in your src directory. This directory is full of pre-built templates for you to use as an example of how to create your own stories. I recommend you don't delete these until you become familiar with Storybook and how to write your own stories, having them close by will be very handy.

That means storybook creates the files that are causing the problems when it is initially installed.
You can just delete ./src/stories once you no longer need them.

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