Storybook Integration in PNPM Monorepo: "ReferenceError: c is not defined" #27044
-
SummaryHello everyone, I'm facing a challenge with integrating Storybook into the Despite the configurations being quite similar between the two, Storybook in The specific error I encounter is:
First thing I noticed is that Storybook doesn't utilize the But the actual issue comes from Storybook's modification of the Although I've explored a related discussion with a proposed solution, it hasn't resolved my issue. Insights or suggestions from anyone who has navigated similar challenges would be greatly appreciated. Thanks :) Additional information
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Resolved for now by setting const config = {
stories: [/* .. */],
typescript: {
reactDocgen: false
},
}; This workaround addresses an issue with React Docgen's handling of components in monorepos or those aggregated through an |
Beta Was this translation helpful? Give feedback.
Resolved for now by setting
reactDocgen
tofalse
in the Storybook TypeScript configuration:This workaround addresses an issue with React Docgen's handling of components in monorepos or those aggregated through an
index.ts
file. Reference: Storybook TypeScript Configuration.