-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storyshots: running initStoryshots
fails with "cannot find property 'name' of undefined"
#10455
Comments
that's pretty weird. is |
@shilman: Nope, no mention or usage of My thinking is that maybe it has something to do with the way If it helps, I've tried to install version
But now my stories won't render and have the error |
That’s pretty weird. The framework detection code in storyshots loops over the supported frameworks and angular is the first one, so that’s why it’s possible even when @storybook/angular is not installed. But what that framework check is passing for angular is a mystery. When you want to debug something like this in a project outside of the storybook monorepo, usually the fastest way is to read through the package source in the monorepo and then insert console.log statements into the node_modules to see what’s going on |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Just to circle back on this, it turns out that this issue was the case of a jest config value and some interesting Basically what was happening was with our jest config, we had the following entry:
You'll notice that we have Basically the "react" referenced here is resolving to itself instead of actual |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
Have been trying to upgrade from Storybook 5.1.x to 5.3.x and getting an error with running
initStoryshot
with a custom test function. The last known working version was5.1.10
Steps to reproduce
Running the test with
yarn test
does not seem to reach pastinitStoryshot
.It should also be noted that this is from a monorepo, so it might be that there is something up with
yarn workspaces
but was wondering if there was something obvious I missed. Looking at the stack trace, it looks like it's trying to load the angular framework, but we are using react. I've tried to add{ framework: 'react' }
to shortcircuit this, but that didn't have any perceived effect and I received the same stack trace.Please specify which version of Storybook and optionally any affected addons that you're running
Env Info
Screenshots / Screencast / Code Snippets (Optional)
Test code:
Error stack:
The text was updated successfully, but these errors were encountered: