-
Notifications
You must be signed in to change notification settings - Fork 72
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
TypeError: Cannot read properties of undefined (reading 'map') #277
Comments
I have the same issue. Having this using the
EDIT: |
I faced the same for the project using NX, the main config file knows nothing about stories to go through, because of
and call runner with |
We need to catch this error & let people know they need a Perhaps also add to MIGRATION.md if we somehow supported this in 6.x and chose to remove in 7.0 |
Describe the bug
I'm trying to run storybook test runner after installing it (being in nx environment):
npx test-storybook --url http://localhost:4400
And getting the error in the terminal:
[test-storybook] TypeError: Cannot read properties of undefined (reading 'map')
I haven't created a reproduction yet because I'm not sure I'm allowed to. Does anyone know if this is actually a bug, or something I'm missing in the installation?
I'm followed this guide: https://storybook.js.org/addons/@storybook/test-runner
And I'm using pnpm to install packages
Thanks a lot in advance!
System:
OS: Windows 10 10.0.22000 (actually it's Windows 11)
CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12900K
Binaries:
Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (105.0.1343.33)
The text was updated successfully, but these errors were encountered: