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

Runs out of memory trying to build docs when prop has empty PropTypes.shape() and PropTypes.arrayOf() #141

Open
rmfarrell opened this issue Sep 20, 2023 · 0 comments

Comments

@rmfarrell
Copy link

rmfarrell commented Sep 20, 2023

It looks like defining a components prop type this way causes Storybook to run out of memory (FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory)

Component.propTypes = {
  foo: PropTypes.shape(),
  bar: PropTypes.arrayOf()
}

This is a case of user error but it was difficult to debug. Could the plugin throw an error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant