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

No Storybook config file #30

Open
miker2049 opened this issue Aug 4, 2023 · 1 comment
Open

No Storybook config file #30

miker2049 opened this issue Aug 4, 2023 · 1 comment

Comments

@miker2049
Copy link

It doesn't seem like the necessary config files are checked in to allow viewing stories.

I get this running npm run storybook

ERR! Error: No configuration files have been found in your configDir (/home/mik/react-konva-utils/.storybook).
ERR! Storybook needs either a "main" or "config" file.
ERR!     at validateConfigurationFiles (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/validate-configuration-files.js:50:11)
ERR!     at loadCustomPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/load-custom-presets.js:19:62)
ERR!     at loadAllPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/presets.js:357:131)
ERR!     at buildDevStandalone (/home/mik/react-konva-utils/node_modules/@storybook/core-server/dist/cjs/build-dev.js:108:48)
ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ERR!     at async buildDev (/home/mik/react-konva-utils/node_modules/@storybook/core-server/dist/cjs/build-dev.js:174:5)
ERR!  Error: No configuration files have been found in your configDir (/home/mik/react-konva-utils/.storybook).
ERR! Storybook needs either a "main" or "config" file.
ERR!     at validateConfigurationFiles (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/validate-configuration-files.js:50:11)
ERR!     at loadCustomPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/load-custom-presets.js:19:62)
ERR!     at loadAllPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/presets.js:357:131)
ERR!     at buildDevStandalone (/home/mik/react-konva-utils/node_modules/@storybook/core-server/dist/cjs/build-dev.js:108:48)
ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ERR!     at async buildDev (/home/mik/react-konva-utils/node_modules/@storybook/core-server/dist/cjs/build-dev.js:174:5)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/validate-configuration-files.js:50
    throw new Error((0, _tsDedent.default)`
          ^

Error: No configuration files have been found in your configDir (/home/mik/react-konva-utils/.storybook).
Storybook needs either a "main" or "config" file.
    at validateConfigurationFiles (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/validate-configuration-files.js:50:11)
    at loadCustomPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/utils/load-custom-presets.js:19:62)
    at loadAllPresets (/home/mik/react-konva-utils/node_modules/@storybook/core-common/dist/cjs/presets.js:357:131)
    at buildDev (/home/mik/react-konva-utils/node_modules/@storybook/core-server/dist/cjs/build-dev.js:209:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.16.1
@lavrton
Copy link
Member

lavrton commented Aug 7, 2023

I am not certain why you have this. It is running just fine for me. I tried with node v16.

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