Cannot add property __docgenInfo, object is not extensible | v8.0.9 | React | Vite #26978
Unanswered
benebene84
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
We are building an internal design system with a shared component library. Up until now, storybook was part of the component library. Now we are trying to set-up a mono-repository in order to able to test components in different frameworks before releasing a component (nextjs app playground).
After moving Storybook to a separate workspace / package and including the component library via workspace, the automatic docgen is throwing this error:
Cannot add property __docgenInfo, object is not extensible TypeError: Cannot add property __docgenInfo, object is not extensible at .../aux-lupine-design-system/packages/lupine-design-system/dist/main.js?t=1714384420755:317:483
The file is the entrypoint of the design system package, so I am a bit puzzled why this is even considered as a component for docgen generation? I also can't include or exclude it via the react-typescript-docgen options. Once I set the react-docgen to false, Storybook renders correctly without the error.
I also initialized a new storybook, it throws the error, as soon as I add the package from the design system workspace.
Any help greatly appreciated!
Additional information
Storybook v8.0.9
main.js:
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions