color-mode
color-mode copied to clipboard
Color-mode throws error in a static storybook build
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 - Did you get around this somehow? We're seeing the same thing.