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]: TypeError when not specifying stories in v7 #20761

Open
tobiasdiez opened this issue Jan 24, 2023 · 0 comments
Open

[Bug]: TypeError when not specifying stories in v7 #20761

tobiasdiez opened this issue Jan 24, 2023 · 0 comments

Comments

@tobiasdiez
Copy link
Contributor

Describe the bug

If you comment out, the stories option in the following config,

module.exports = {
  stories: ['../components/*.stories.ts'],
  core: {
    disableTelemetry: true,
  },
  framework: {
    name: '@storybook/vue3-vite',
    options: {},
  },
}

then storiesbooks fails with

info => Starting manager..
D:\Programming\JabRefOnline\node_modules\@storybook\core-common\dist\index.js:807
    normalizeStories = (entries, options) => entries.map(entry => normalizeStoriesEntry(entry, options));       
                                                     ^

TypeError: Cannot read properties of undefined (reading 'map')
    at normalizeStories (D:\Programming\JabRefOnline\node_modules\@storybook\core-common\dist\index.js:807:54)  
    at getStoryIndexGenerator (D:\Programming\JabRefOnline\node_modules\@storybook\core-server\dist\index.js:20:640)

To Reproduce

https://github.com/JabRef/JabRefOnline/pull/1726

System

Environment Info:

  System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-1280P
  Binaries:
    Node: 19.4.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.3.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 9.2.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1105.0), Chromium (109.0.1518.61)
  npmPackages:
    @storybook/core-server: ^7.0.0-beta.32 => 7.0.0-beta.32
    @storybook/vue3: ^7.0.0-beta.32 => 7.0.0-beta.32
    @storybook/vue3-vite: 7.0.0-beta.32 => 7.0.0-beta.32

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