Skip to content

Commit

Permalink
Fixing - ReferenceError: React is not defined storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
vrundakansara committed Sep 4, 2024
1 parent d635fa7 commit dd53fb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
const config = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: ["@storybook/addon-webpack5-compiler-swc", "@storybook/addon-onboarding", "@storybook/addon-links", "@storybook/addon-essentials", "@chromatic-com/storybook", "@storybook/addon-interactions"],
swc: () => ({
jsc: {
transform: {
react: {
runtime: 'automatic'
}
}
}
}),
framework: {
name: "@storybook/react-webpack5",
options: {},
Expand Down

0 comments on commit dd53fb9

Please sign in to comment.