color-mode icon indicating copy to clipboard operation
color-mode copied to clipboard

Color-mode throws error in a static storybook build

Open wetendorff opened this issue 2 years ago • 1 comments

Version

  • @nuxtjs/color-mode: 2.1.1
  • @nuxtjs/storybook: 4.2.0
  • nuxt: 2.15.8

Reproduction Link

GitHub repository that can reproduce the bug: https://github.com/wetendorff/nuxt-storybook-colormode-bug

Steps to reproduce

npm install
npm run storybook:build
npx http-server storybook-static/

What is Expected?

Same result as:

npm run storybook

What is actually happening?

Fails with error:

colorMode is undefined

plugin_client@http://127.0.0.1:8080/main.ad4abd53.iframe.bundle.js:1:55263
_callee2$@http://127.0.0.1:8080/main.ad4abd53.iframe.bundle.js:1:62178
tryCatch@http://127.0.0.1:8080/vendors~main.a248c2cf.iframe.bundle.js:2:484186
invoke@http://127.0.0.1:8080/vendors~main.a248c2cf.iframe.bundle.js:2:483817
defineIteratorMethods/</<@http://127.0.0.1:8080/vendors~main.a248c2cf.iframe.bundle.js:2:484961
asyncGeneratorStep@http://127.0.0.1:8080/vendors~main.a248c2cf.iframe.bundle.js:2:405102
_next@http://127.0.0.1:8080/vendors~main.a248c2cf.iframe.bundle.js:2:405422

wetendorff avatar Jan 04 '22 17:01 wetendorff

@wetendorff - Did you get around this somehow? We're seeing the same thing.

sjcallender avatar May 17 '22 19:05 sjcallender