You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I load the Docs page for my storybook, I run into an error that variables are accessed before they defined. I found simple patch can address this issue. I hope it will help you narrow down the issue and solve it.
Here is the diff that solved my problem:
diff --git a/node_modules/@storybook/core/dist/theming/index.js b/node_modules/@storybook/core/dist/theming/index.js
index 5a8b0a9..4783d46 100644
--- a/node_modules/@storybook/core/dist/theming/index.js+++ b/node_modules/@storybook/core/dist/theming/index.js@@ -1806,11 +1806,11 @@ var Ia = /* @__PURE__ */ a(function(r) {
}), u);
});
Yt.displayName = "EmotionClassNames";
+var wr, Ut, Sr, Or;
wr = !0, Ut = typeof jest < "u" || typeof vi < "u", wr && !Ut && (Sr = // $FlowIgnore
typeof globalThis < "u" ? globalThis : wr ? window : global, Or = "__EMOTION_REACT_" + Aa.version.split(".")[0] + "__", Sr[Or] && console.warn(
"You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versio\
ns are used, or if multiple builds of the same version are used."), Sr[Or] = !0);
-var wr, Ut, Sr, Or;
// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
var ka = sr, Pa = /* @__PURE__ */ a(function(r) {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@storybook/[email protected]
for the project I'm working on.When I load the Docs page for my storybook, I run into an error that variables are accessed before they defined. I found simple patch can address this issue. I hope it will help you narrow down the issue and solve it.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: