builder-vite: Storybook doesn't display Docs page
MDX story is not rendering for 0.1.3 version. I see these two messages in console:
render was not supported :( !
renderToDOM was not supported :( !
MRP is available here https://github.com/morewings/forge/tree/master/packages/library-vite
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (11 by maintainers)
I was able to work around the issue in your repo by adding this to the top level package.json:
This is only necessary until the official release of 6.4.0, which would then satisfy the semver range specified by storybook-builder-vite.
Note also, there are some
^^in the package.json of your reproduction. Also, having older versions of storybook inlibrary-cracould cause problems if their versions are hoisted to the root, so you might want to consider upgrading storybook in lock step between all your workspaces.This was a clean installation today, I
rimraf node_modulesa few times whilst getting things up and running, and have cache disabled in my browser when dev tools is openYes, that’s a separate problem, unfortunately. https://github.com/eirslett/storybook-builder-vite/issues/103
This issue is an unfortunate consequence of how beta versions work in semver, combined with the loose coupling of packages across the storybook ecosystem. Once 6.4.0 is released, it will start to work again.
The only other thing I can think to do is to create a peer dependency on
@storybook/csf-tools, but that’s kind of a bummer too. Maybe enough people are having this issue that it would be worth it to avoid confusion, though…I try
but it had no effect.
However,My project is nothing different,it works normal. I don’t know why.