-
-
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
Yet another Cannot convert undefined or null to object #14752
Comments
Do you have a repro repo you can share? |
@shilman I've put a repo here: https://github.com/jayliu50/storybook-issue-report/tree/main Thank you so much! 🙏🏽 |
@shilman (in case if you missed) another repro here #14197 (comment). Tried updating to 6.2.9 - doesn't help |
Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.33 containing PR #14976 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Turn off the Loom extension made the error log go away on my end, hope this helps other people with the same situation. |
Describe the bug
A completely white screen shows. When navigating to the Controls tab within add-ons.
In the console is the following error
When stepping through, it appears that
options
is always undefined.Going up one frame in the stack reveals the following
... strange, because this is how I pass in the
argTypes
where
ColorOptions
isUnlike #14631, It doesn't relate to addon-docs, but instead I addon-controls, I believe.
To Reproduce
I have no idea. It has no rhyme or reason.
Let's say in
A.stories.js
has story forA.jsx
andB.stories.js
has a story forB.jsx
:In
A.stories.js
, I get an error, and inB.stories.js
there is no error, even though both have the exact same object passed asargTypes
.I swap stories, such that
A.stories.js
has a story forB.jsx
andB.stories.js
has a story forA.jsx
:In
A.stories.js
I continue to have an error, and inB.stories.js
I continue to not have an error.to make it more concrete.
This file has an error:
Thumbnail.stories.js:
This file has no error
Sidebar.stories.js
Hopefully, I've proven that it doesn't matter what the standardArgTypes are. I was able to swap out the
NotebookTab
component withThumbnail
, and I get the same result (with one of them working)System
Environment Info:
Additional Context
I'm pretty sure this is NOT #14631
I've tried disabling add-on docs, which gets me just a little bit farther (i.e., it won't die immediately). However, as soon as I go to Controls, it will crash.
The text was updated successfully, but these errors were encountered: