Skip to content

Error configuration file #451

Description

@coding404life

Describe the bug

Error: No configuration files have been found in your configDir (./.storybook).
Storybook needs "main.js" file, please add it (or pass a custom config dir flag to Storybook to tell where your main.js file is located at).
    
at validateConfigurationFiles (./node_modules/@storybook/core-common/dist/index.js:9:30)
    at async loadMainConfig (./node_modules/@storybook/core-common/dist/index.js:19:6698)
    at async buildDevStandalone (./node_modules/@storybook/core-server/dist/index.js:116:1244)
    at async withTelemetry (./node_modules/@storybook/core-server/dist/index.js:101:4155)
    at async dev (./node_modules/@storybook/cli/dist/generate.js:473:401)
    at async Command.<anonymous> (./node_modules/@storybook/cli/dist/generate.js:475:225)


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

/Users/user1/Documents/web-development/ultraviolet/HiveCommand/node_modules/@storybook/cli/bin/index.js:23
  throw error;
  ^

Error: No configuration files have been found in your configDir (/Users/YahyaPro/Documents/web-development/ultraviolet/HiveCommand/.storybook).
Storybook needs "main.js" file, please add it (or pass a custom config dir flag to Storybook to tell where your main.js file is located at).
    at validateConfigurationFiles (/Users/YahyaPro/Documents/web-development/ultraviolet/HiveCommand/node_modules/@storybook/core-common/dist/index.js:9:30)

Node.js v18.17.1

To Reproduce
Steps to reproduce the behavior:

  1. yarn to install all the packages
  2. yarn storybook

Expected behavior
to run storybook

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions