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
[@storybook/addon-actions]: ActionLogger crashes storybook app #17409
Comments
It looks like the issue is in channel-postmessage/src/index.ts#L107 and might be related to 'telejson' lib.
@shilman, guys, could you please take a look? that's quite critical because it crashes the app. |
We are facing the same issue. Can this be looked into? |
Same issue (^6.5.7). Can this be investigated? Thanks! |
@mgameover, set The line where an action is sent
data - the actiondepth - from configThe line where depth option is converted to maxDepth
The serialization line. Event has several auxiliary layers
So your action is serialized to “Object”. |
Describe the bug
ActionLogger crashes storybook app if ActionOptions (
{ depth: 2 }
) has been provided.I am using
depth
parameter to avoid 'Maximum call stack size exceeded' exception if event argument has circular references.It works fine in SB v6.3
To Reproduce
Specify
ActionOptions
object for action e.g,{ depth: 2 }
e.g. (seeonclick
action)Steps:
npm i
,npm run storybook
Result:
Storybook app crashed with the following exception:
Exception
System
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i7-4940MX CPU @ 3.10GHz
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 97.0.4692.99
Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.76)
npmPackages:
@storybook/addon-a11y: ^6.4.18 => 6.4.18
@storybook/addon-actions: ^6.4.18 => 6.4.18
@storybook/addon-docs: ^6.4.18 => 6.4.18
@storybook/addon-essentials: ^6.4.18 => 6.4.18
@storybook/addon-knobs: ^6.4.0 => 6.4.0
@storybook/addon-links: ^6.4.18 => 6.4.18
@storybook/addon-viewport: ^6.4.18 => 6.4.18
@storybook/addons: ^6.4.18 => 6.4.18
@storybook/angular: ^6.4.18 => 6.4.18
@storybook/builder-webpack5: ^6.4.18 => 6.4.18
@storybook/manager-webpack5: ^6.4.18 => 6.4.18
@storybook/source-loader: ^6.4.18 => 6.4.18
The text was updated successfully, but these errors were encountered: