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

Storybook not working for lit-element #670

Closed
zaidchauhan opened this issue Mar 30, 2021 · 2 comments
Closed

Storybook not working for lit-element #670

zaidchauhan opened this issue Mar 30, 2021 · 2 comments
Labels
bug Something isn't working with:storybook

Comments

@zaidchauhan
Copy link

zaidchauhan commented Mar 30, 2021

Describe the bug

I am trying to use mswjs for web component built with lit-element.
I already followed the example mentioned here - https://github.com/mswjs/examples/tree/master/examples/with-storybook

Mocking for the development and unit tests works fine. However, for storybook, it does not work. I am seeing a message that Mocking is enabled in console.

Here is my example repo - https://github.com/zaidchauhan/lit-with-mswjs

Environment

  • msw: 0.28.0
  • nodejs: 12.17.0
  • npm: 6.14.8

Please also provide your browser version.
Chrome: 89.0.4389.90

To Reproduce

Steps to reproduce the behavior:

  1. Clone repo https://github.com/zaidchauhan/lit-with-mswjs
  2. npm install
  3. npm run storybook
  4. See error

Expected behavior

It should work

Screenshots

image

@zaidchauhan zaidchauhan added the bug Something isn't working label Mar 30, 2021
@zaidchauhan zaidchauhan changed the title Storybook not working for lit-element | Infinite loop Storybook not working for lit-element Mar 31, 2021
@zaidchauhan
Copy link
Author

@kettanaito Any comments?

@kettanaito
Copy link
Member

Hey, @zaidchauhan.

I've linked a related issue in the msw-storybook-addon (which you should be using for MSW + Storybook integration). It seems like a bundler issue but it may require more investigation to be precise.

I'm closing this issue because it's not something we can/should be tackling at the MSW side. Thank you for understanding.

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

No branches or pull requests

2 participants