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]: stories glob does not work if project directory has parentheses #28404

Open
azhang opened this issue Jul 1, 2024 · 0 comments
Open

[Bug]: stories glob does not work if project directory has parentheses #28404

azhang opened this issue Jul 1, 2024 · 0 comments

Comments

@azhang
Copy link

azhang commented Jul 1, 2024

Describe the bug

When running Storybook in a repo that has parens in the dir name, it is unable to install correct and unable to file story files.

WARN No story files found for the specified pattern: stories/**/*.mdx
WARN No story files found for the specified pattern: stories/**/*.stories.@(js|jsx|mjs|ts|tsx)

Reproduction link

none

Reproduction steps

Simplest reproduction is new next.js (all default settings), then installing storybook.

npx create-next-app@latest
npx storybook@latest init # This gets stuck with above error
npm run storybook # this shows errors with above error.

As soon as I remove parens from the dirname, it all works

System

System:
    OS: macOS 14.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.6.2 - /usr/local/bin/node
    npm: 10.2.4 - /usr/local/bin/npm <----- active
    pnpm: 8.10.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 126.0.6478.127
    Safari: 17.5
  npmPackages:
    @storybook/addon-essentials: ^8.1.11 => 8.1.11 
    @storybook/addon-interactions: ^8.1.11 => 8.1.11 
    @storybook/addon-links: ^8.1.11 => 8.1.11 
    @storybook/addon-onboarding: ^8.1.11 => 8.1.11 
    @storybook/blocks: ^8.1.11 => 8.1.11 
    @storybook/nextjs: ^8.1.11 => 8.1.11 
    @storybook/react: ^8.1.11 => 8.1.11 
    @storybook/test: ^8.1.11 => 8.1.11 
    eslint-plugin-storybook: ^0.8.0 => 0.8.0 
    storybook: ^8.1.11 => 8.1.11

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