Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color-mode throws error in a static storybook build #116

Open
wetendorff opened this issue Jan 4, 2022 · 1 comment
Open

Color-mode throws error in a static storybook build #116

wetendorff opened this issue Jan 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@wetendorff
Copy link

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 wetendorff added the bug Something isn't working label Jan 4, 2022
@sjcallender
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants