modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.18k stars 276 forks source link

Storybook Builder: Failed to fetch dynamically imported module: http://localhost:6006/stories/Configure.mdx #2529

Closed abendigo closed 10 months ago

abendigo commented 10 months ago

I created a brand new empty folder, and was following the instructions here:

https://modern-web.dev/docs/storybook-builder/configuration/

When I got to this step:

set the framework.name to '@web/storybook-framework-web-components'

I got the following error:

Failed to fetch dynamically imported module: http://localhost:6006/stories/Configure.mdx

I suspect I need to create a web-dev-server.config.js file, but I have no idea what should be in it.

abendigo commented 10 months ago

story-builder fro web components does not support MDX or css imports, both of which storybook init creates by default

bashmish commented 9 months ago

@abendigo I'm working on MDX support, soon to be released.

"css imports" is another topic, we are not going to support this out of the box since this is not a Storybook or Web platform feature. Things like that you can configure yourself in "wdsFinal" and "rollupFinal".

abendigo commented 9 months ago

@bashmish Awesome!