I'm trying to use this addon to toggle my mantine color scheme along with storybook mode.
However, when I set the 'storybook-dark-mode' addon in main.ts :
and launch my app in Mozilla Firefox, my application crashes whenever I manually reload the page. Plus, even on the first load, I can't see the toggle button in the toolbar.
Here is the devtools console error:
Uncaught TypeError: j.localStorage.getItem is not a function
T http://localhost:5173/sb-addons/storybook-dark-mode-esm-preset-8/manager-bundle.js:4
We http://localhost:5173/sb-addons/storybook-dark-mode-esm-preset-8/manager-bundle.js:4
commitHookEffectListMount http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:75
commitPassiveHookEffects http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:88
callCallback2 http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:2
invokeGuardedCallbackDev http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:2
invokeGuardedCallback http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:2
flushPassiveEffectsImpl http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:90
unstable_runWithPriority http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
runWithPriority$1 http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:9
flushPassiveEffects http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:90
commitBeforeMutationEffects http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:90
workLoop http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
flushWork http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
performWorkUntilDeadline http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
__commonJS http://localhost:5173/sb-manager/chunk-RKFFWI2D.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
__commonJS http://localhost:5173/sb-manager/chunk-RKFFWI2D.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:128
__commonJS http://localhost:5173/sb-manager/chunk-RKFFWI2D.js:1
js http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:128
__commonJS http://localhost:5173/sb-manager/chunk-RKFFWI2D.js:1
<anonymous> http://localhost:5173/sb-manager/chunk-NBCGHFLK.js:128
manager-bundle.js:4:1729
I'm using Chrome as a workaround but it is annoying for me because Mozilla Firefox is the main browser in my company.
Hello,
I'm trying to use this addon to toggle my mantine color scheme along with storybook mode. However, when I set the 'storybook-dark-mode' addon in
main.ts
:and launch my app in Mozilla Firefox, my application crashes whenever I manually reload the page. Plus, even on the first load, I can't see the toggle button in the toolbar.
Here is the devtools console error:
I'm using Chrome as a workaround but it is annoying for me because Mozilla Firefox is the main browser in my company.
Here is some
package.json
info for you :